docs / com.github.insanusmokrassar.TelegramBotAPI.extensions.utils

Package com.github.insanusmokrassar.TelegramBotAPI.extensions.utils

Extensions for External Classes

(common)

kotlinx.coroutines.flow.Flow

Functions

(common)

safely

Shortcut for handleSafely. It was created for more comfortable way of handling different things

suspend fun <T> safely(onException: ExceptionHandler<T> = { throw it }, block: suspend CoroutineScope.() -> T): T