Join Slack
Powered by
to get the terminology right, these are green thre...
# coroutines
i
iex
04/19/2020, 10:28 PM
to get the terminology right, these are green threads, right?
o
octylFractal
04/19/2020, 10:46 PM
I think that's technically incorrect because green threads have no concept of structure -- in this example,
coroutineScope {}
will suspend until all of the Jobs launched inside (by
async
here) are completed
i
iex
04/19/2020, 10:50 PM
okay. Thanks!
iex
04/19/2020, 10:50 PM
(the technically correct term I guess would be just "coroutine"? 😄 )
o
octylFractal
04/19/2020, 10:51 PM
I think "job" is the best, since that encapsulates the whole lifecycle
👍 1
8
Views
Open in Slack
Previous
Next