<@U0BHS1Y07> The `go{}` is just an example of what...
# coroutines
e
@voddan The
go{}
is just an example of what you could write in your library. This particular example has a pretty trivial dispatcher. It is great for slide-ware, but if you are into any kind of serious large-scale concurrent computation running a lot of couroutines on many CPU cores, then you'd want to implement some variant of work-stealing O(1) dispatcher to improve cache locality. There is a number of algorithms to choose from with different tradeoffs, so I'm sure you can figure out something appropriate for your particular domain. Kotlin does not limit your imagination. I have not looked at implementation details of Go's dispatcher so I cannot comment on how advanced is it.