Jonathan
07/06/2025, 10:26 PMChannel
sender? I'm using a rendezvous Channel
too synchronously send data to consumer coroutine that writes to a output stream. I would like to be able to return a boolean
value indicating the result of the write to the coroutine that handles sending the work to the rendezvous Channel
.Joffrey
07/06/2025, 10:46 PMJonathan
07/06/2025, 10:51 PMOutputStream
as an argument and will loop indefinitely writing data when it arrives in the Channel
. I opted to use a channel so that I could eliminate the need for null checks on the stream, since my coroutine received a non-null instance.... I also thought it was best to use a channel to safely communicate between two coroutines... With that being said I'm not entirely sure I need to have a dedicated output coroutine.jw
07/06/2025, 11:48 PMjw
07/06/2025, 11:48 PMYoussef Shoaib [MOD]
07/06/2025, 11:50 PMJoffrey
07/07/2025, 6:40 AMJoffrey
07/07/2025, 6:40 AMJonathan
07/08/2025, 4:41 AMJonathan
07/10/2025, 1:11 PMChannel
if it shouldn't be used as a mechanism for communicating between two Coroutines?jw
07/10/2025, 1:12 PMJonathan
07/10/2025, 1:13 PMJoffrey
07/10/2025, 1:13 PM