ExtendedWebCoroutineVerticle
abstract class ExtendedWebCoroutineVerticle : CoroutineVerticle, ExtendedWebCoroutineVerticleI(source)
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
inline fun Route.checkedCoroutineHandlerInline(crossinline requestHandler: suspend (RoutingContext) -> Unit): Route
The inline version of checkedCoroutineHandler, which might be slightly faster but can also make the stack trace difficult to debug.
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
inline fun Route.coroutineHandlerInline(crossinline requestHandler: suspend (RoutingContext) -> Unit): Route
The inline version of coroutineHandler, which might be slightly faster but can also make the stack trace difficult to debug.
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