[Concurrency] Structured concurrency

Hey there,

Yes, you're right -- a handle has to be called on with get() to wait there.

I think we fixed this in the more recent revisions

Not sure what session you mean :slight_smile: You’re right though — detached tasks (started by Task.runDetached) run right away, and the get is just what is where you suspend and wait for the result.

Hope this helps,

FYI: a more up to date proposal and discussion thread is: [Pitch #2] Structured Concurrency if you’d like to read up or ask more questions.