ExtendedWebCoroutineVerticle

Constructors

Link copied to clipboard
constructor()

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
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
open override fun getVertx(): Vertx
Link copied to clipboard
open override fun init(vertx: Vertx, context: 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 override fun start()
open override fun start(startFuture: Promise<Void>?)
Link copied to clipboard
open suspend override fun stop()
open override fun stop(stopFuture: Promise<Void>?)