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(executorServiceEval: () => ExecutorService, executionContextEval: () => ExecutionContext, scheduledExecutorServiceEval: () => ScheduledExecutorService, schedulerEval: () => Scheduler, shutdown: () => Unit)

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
trait FutureAwait

implicit methods to await a future values with a given timeout and number of retries

implicit methods to await a future values with a given timeout and number of retries

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object FutureAwait
object FutureAwait extends FutureAwait

Attributes

Companion
trait
Supertypes
trait FutureAwait
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
object Schedulers

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Schedulers.type
case class TimeoutFailure(appliedTimeout: FiniteDuration, totalDuration: FiniteDuration, timeFactor: Int)

Attributes

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

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