asChannelOrNull

open suspend override fun asChannelOrNull(): ThreadOnlyChannel?(source)

Requests to get this behavior as a ThreadOnlyChannel, returns null if the channel isn't present or if the channel isn't a ThreadOnlyChannel.

Throws

if anything went wrong during the request.