ExtendedWebCoroutineVerticleI
Inheritors
Functions
Link copied to clipboard
open fun Route.checkedCoroutineHandler(launchMode: CoroutineHandlerLaunchMode = DefaultOnVertxEventLoop, requestHandler: suspend (RoutingContext) -> Unit): Route
Like coroutineHandler and calls RoutingContext.fail if a Throwable is thrown in requestHandler.
Link copied to clipboard
open fun Route.coroutineHandler(launchMode: CoroutineHandlerLaunchMode = DefaultOnVertxEventLoop, requestHandler: suspend (RoutingContext) -> Unit): Route
Like Route.handler but with a suspend function as requestHandler.
Link copied to clipboard
fun <T> CoroutineScope.coroutineToFuture(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> T): Future<T>
Launch a coroutine and converts it into a Future that completes when the suspended function returns and fails if it throws.
Link copied to clipboard
inline fun CoroutineScope.launchChecked(ctx: RoutingContext, context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, crossinline block: suspend CoroutineScope.() -> Unit): Job