I find that I frequently need a Job+SendChannel that sends to that job, where the Job acts as a consumer on the channel (internally it has the corresponding ReceiveChannel) and the job exits once the channel is closed for receive. I've built some small helper classes&functions to help with this, but I'm wondering if there's something already in kotlinx.coroutines I missed, or if there's some reason I shouldn't be doing things this way.
03/10/2021, 6:39 PM
03/10/2021, 7:04 PM
Thanks @Adam Powell! Yeah, that sounds like what I'm looking for.
I see it's annotated