VertxExecutionContext

io.vertx.lang.scala.VertxExecutionContext
See theVertxExecutionContext companion object
class VertxExecutionContext(val vertx: Vertx, val ctx: Context) extends ExecutionContext

A scala scala.concurrent.ExecutionContext binds scala.concurrent.Promise/scala.concurrent.Future to a thread. In the case of Vert.x we have to make sure that they execute on the right context. A context could be that of a worker or a standard verticle. This execution context implementation runs all Runnables on the associated io.vertx.core.Context.

Taken from the original Vert.x-impl https://github.com/vert-x/mod-lang-scala/blob/master/src/main/scala/org/vertx/scala/core/VertxExecutionContext.scala

Attributes

Companion
object
Graph
Supertypes
trait ExecutionContext
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def execute(runnable: Runnable): Unit

Attributes

Definition Classes
ExecutionContext
override def reportFailure(cause: Throwable): Unit

Attributes

Definition Classes
ExecutionContext

Deprecated and Inherited methods

def prepare(): ExecutionContext

Attributes

Deprecated
[Since version 2.12.0] preparation of ExecutionContexts will be removed
Inherited from:
ExecutionContext

Concrete fields

val ctx: Context
val vertx: Vertx