Is there a way I can specify to `produce` that I d...
# coroutines
g
Is there a way I can specify to
produce
that I dont want it to run its block until somebody calls
recieve
from it? IE a kind of pull based channel?
l
Just specify the
start
parameter to be
CoroutineStart.LAZY
👍 2
g
right, but a capacity of 0 gives me a rendesvous channel, which is not the behaviour I want
@louiscad unfortunately
produce
doesnt take a coroutine start, its hard-coded to use
default
u
oh, after the first call to
receive
, you want the producer to run unthrottled?