that has no available 'permits' to start? I need to launch a coroutine to keep a scope alive, but have it suspend until something else tells it to "go"
c
Casey Brooks
09/30/2022, 4:51 PM
CompletableDeferred
is probably the easiest thing to use as a simple “signal”
b
bbaldino
09/30/2022, 4:54 PM
This is perfect, thanks!
e
ephemient
09/30/2022, 4:59 PM
you can also
launch(start = CoroutineStart.LAZY)
- the resulting job will not start until you call
.start()
or
.join()
on it
b
bbaldino
09/30/2022, 5:00 PM
Oh interesting, will a coroutine in unstarted state keep a parent scope alive?