Ask coding questions

← Back to all posts
(Python)Return value from threaded function
h
QuantumCodes

If i have a thread that runs a function that returns something, how do i get the returned value?

I know people will say:

But if the function is imported from another file? Global is useless

Voters
QuantumCodes
Comments
hotnewtop
Chiroyce

I think Django is faster, check this out — https://replit.com/@templates/Django-App-Template

QuantumCodes

@Chiroyce gotta learn tho...

QuantumCodes

Anyone? Just say idk if u dont know???

QuantumCodes

Someone????

QuantumCodes

I wanted to make a flask API. Its slow. So i thoughtto thread it