ExtendedWebCoroutineVerticleI

Properties

Link copied to clipboard

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
abstract fun getVertx(): Vertx
Link copied to clipboard
abstract fun init(p0: Vertx, p1: Context)
Link copied to clipboard
inline fun CoroutineScope.launchChecked(ctx: RoutingContext, context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, crossinline block: suspend CoroutineScope.() -> Unit): Job

Launches a coroutine like launch, and calls RoutingContext.fail on ctx if a Throwable is thrown in block.

Link copied to clipboard
open suspend fun start()
abstract fun start(p0: Promise<Void>)
Link copied to clipboard
open suspend fun stop()
abstract fun stop(p0: Promise<Void>)