# executeAsync - docs

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

# executeAsync

(common) `fun <T : Any> RequestsExecutor.executeAsync(request: Request<T>, onFail: (suspend (Response) -> Unit)? = null, scope: CoroutineScope = GlobalScope, onSuccess: (suspend (T) -> Unit)? = null): Job` (source)
`fun <T : Any> RequestsExecutor.executeAsync(request: Request<T>, scope: CoroutineScope = GlobalScope): Deferred<T>` (source)