async

fun async(deferred: Deferred<EventResult>): AsyncEventResult

得到一个异步执行函数的 AsyncEventResult, 其 AsyncEventResult.content 为一个预期返回 EventResultDeferred.

See also


inline fun async(scope: CoroutineScope, context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, crossinline block: suspend CoroutineScope.() -> Any?): AsyncEventResult

得到一个异步执行函数的 AsyncEventResult, 其 AsyncEventResult.content 为一个预期返回 EventResultDeferred.

See also


得到一个异步执行函数的 AsyncEventResult, 其 AsyncEventResult.content 为一个预期返回 EventResultCompletableFuture.

See also