I've bumped into a guide several weeks ago where `...
# coroutines
a
I've bumped into a guide several weeks ago where `Sequence`s were explained using a visual guide but I can't seem to find it now in Google. Have any of you bumped into that?
l
Not related to coroutines. Is it this one? https://typealias.com/guides/kotlin-sequences-illustrated-guide/
đź‘Ť 1
a
Yes
It is related to coroutines because of this: coroutine
just take a look at what kind of lambda the
sequence
builder accepts
b
@addamsson yes it utilizes coroutine mechanics to provide the suspending
yield
behavior. You can’t use other suspend functions though and it always uses the same thread that the sequence is consumed on