top | item 42494181

(no title)

elcomet | 1 year ago

What do you mean? Async/await uses threads

discuss

order

bhouston|1 year ago

I was trying to make sense of this sentence of the original commenter: "In new code I try to use threads, but certain things like yield which rely on async are simply too common and useful to stop using."

Seems to suggest that threads and yield/async were mutually exclusive. I misunderstood. I will move on.

trollbridge|1 year ago

They aren't mutually exclusive, but are two basically independent features. The way you would code for one and the other is completely different.

te_chris|1 year ago

To use async await you have to execute the code in a run loop.