ResultHandlerChannelFlow - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.core / ResultHandlerChannelFlow

ResultHandlerChannelFlow

@ExperimentalCoroutinesApi class ResultHandlerChannelFlow : ResultHandlerFlow

Class that converts results handler from TdApi client to Flow of the TdApi.Object using ConflatedBroadcastChannel

Constructors

<init> Class that converts results handler from TdApi client to Flow of the TdApi.Object using ConflatedBroadcastChannelResultHandlerChannelFlow(channel: BroadcastChannel<Object> = BroadcastChannel(Channel.CONFLATED))

Functions

collect suspend fun collect(collector: FlowCollector<Object>): Unit
onResult fun onResult(result: Object?): Unit