[Tutor] What exactly does await do? (ThreeBlindQuarks)(David)
Mats Wichmann
mats at wichmann.us
Tue Feb 21 17:13:44 EST 2023
On 2/21/23 12:28, Alan Gauld via Tutor wrote:
> And thats fine inside a thread too.
> Just make sure you sabe the data into a variable accessible once
> the thread completes and set some kind of semaphore/flag to
> indicate when the data is safe to use. (ie you've finished
> the thread)
the queue module is often used for passing information back from threads
(and sometimes to them as well). I know this is "well known" but as it's
a largely beginner-oriented list it seems worthwhile to mention here in
case anyone stumbles across this thread in the future.
More information about the Tutor
mailing list