zeugederunity
06/30/2021, 1:07 PMdiesieben07
06/30/2021, 2:19 PMreceive
will throw an exception if the channel is closed. receiveCatching
doesn't throw, it returns you a failed ChannelResult
instead.zeugederunity
06/30/2021, 4:15 PMdiesieben07
06/30/2021, 4:20 PMefemoney
06/30/2021, 5:02 PMJustin
06/30/2021, 11:37 PMChannelResult<T>
instead of T
.
Create a temporary variable val tempVariable = {yourChannelVariable}
and set it to the channel in question, then have the IDE add the explicit type. It’s likely that your channel’s type is ChannelResult<T>
and not T
zeugederunity
07/01/2021, 8:33 AM