Executor

object Executor extends ExecutorPlatform
class Object
trait Matchable
class Any

Type members

Classlikes

Value members

Concrete methods

def timeOut[A](f: Future[A], time: Long, unit: TimeUnit): Future[A]

If the future f completes within the given time, succeeds, otherwise completes with a scala.concurrent.TimeoutException.

If the future f completes within the given time, succeeds, otherwise completes with a scala.concurrent.TimeoutException.

Inherited methods

def defer(body: => Unit): Unit
Inherited from
ExecutorPlatform
def isJS: Boolean
Inherited from
ExecutorPlatform
def isJVM: Boolean
Inherited from
ExecutorPlatform
def isShutdown: Boolean
Inherited from
ExecutorPlatform
def schedule(time: Long, unit: TimeUnit)(body: => Unit): Unit
Inherited from
ExecutorPlatform
def scheduleWithCancel(time: Long, unit: TimeUnit)(body: => Unit): Cancelable
Inherited from
ExecutorPlatform

Implicits

Inherited implicits

implicit
def executionContext: ExecutionContext

Default execution-context used for scheduling and spawning functions. It uses the scheduledExecutorService.

Default execution-context used for scheduling and spawning functions. It uses the scheduledExecutorService.

Inherited from
ExecutorPlatform