Is producer coroutine still held in `CommonPool` e...
# coroutines
d
Is producer coroutine still held in
CommonPool
even after it has called
close()
on itself? For example
Copy code
fun doThings() : ProducerJob<Foo> = produce(CommonPool)
{
   println("I am do things!")
   delay(1000)
   send(Foo())
   close()
}
e
It will be done when it completes (returns from its body). Btw, you don’t need to invoke
close
at the end, as it is implicitly performed when the
produce
coroutine completes
d
Ah, cheers.