org.specs2.concurrent

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class ExecutionEnv(executorServices: ExecutorServices, timeFactor: Int)

Execution environment

Execution environment

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ExecutionEnv

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ExecutorServices(executionContextEval: () => ExecutionContext, schedulerEval: () => Scheduler)

Executor services for javascript

Executor services for javascript

The global execution context is used for both executing tests and scheduling timeouts

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

add implicit conversions between the execution environment and execution context / executor service

add implicit conversions between the execution environment and execution context / executor service

Attributes

Supertypes
class Object
trait Matchable
class Any

Attributes

Supertypes
class Object
trait Matchable
class Any
trait Scheduler

The design of the Scheduler is taken from: https://github.com/functional-streams-for-scala/fs2/blob/series/1.0/core/jvm/src/main/scala/fs2/Scheduler.scala

Attributes

Supertypes
class Object
trait Matchable
class Any
trait Schedulers

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Schedulers.type
object Schedulers extends Schedulers

Attributes

Companion
trait
Supertypes
trait Schedulers
class Object
trait Matchable
class Any
Self type
Schedulers.type

Value members

Concrete methods

def awaitAction[A](runNow: ExecutionEnv => Future[A], timeout: Option[FiniteDuration], finalizeWith: => Unit, ee: ExecutionEnv): Either[Throwable, A]

Run the action and return an exception if it fails Whatever happens run the finalizers

Run the action and return an exception if it fails Whatever happens run the finalizers

Attributes

def runActionToFuture[A](runNow: ExecutionEnv => Future[A], timeout: Option[FiniteDuration], ee: ExecutionEnv): Future[A]

run as a Future and raise a timeout exception if necessary NOTE: this does not execute the finalizers!!!

run as a Future and raise a timeout exception if necessary NOTE: this does not execute the finalizers!!!

Attributes