package Ġdiscord 4 k Ċ Ċ import Ġkotlinx . coroutines . Experimental Cor outines Api Ċ import Ġkotlinx . coroutines . channels . Send Channel Ċ import Ġkotlinx . coroutines . reactive . await First Ċ import Ġkotlinx . coroutines . reactive . await First OrNull Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġreactor . core . publisher . Flux Ċ import Ġreactor . core . publisher . Mono Ċ Ċ internal Ġsuspend Ġinline Ġfun Ġ< T > ĠMono < T >. suspend (): ĠT ? Ġ= Ġawait First OrNull () Ċ Ċ internal Ġsuspend Ġinline Ġfun Ġ< T > ĠFlux < T >. toList (): ĠList < T > Ġ= Ġthis . collect List (). await First () Ċ Ċ @ Experimental Cor outines Api Ċ fun Ġ< T > ĠFlux < T >. flux To Channel ( channel : ĠSend Channel < T >) Ġ{ ĊĠĠĠ Ġthis . subscribe Ġ{ ĊĠĠĠĠĠĠĠ Ġprintln (" got Ġflux Ġ$ it ") ĊĠĠĠĠĠĠĠ Ġrun Blocking Ġ{ Ġchannel . send ( it ) Ġ} ĊĠĠĠ Ġ} Ċ } ĊĊ