Packages

final class Blocker extends AnyVal

An execution context that is safe to use for blocking operations.

Used in conjunction with ContextShift, this type allows us to write functions that require a special ExecutionContext for evaluation, while discouraging the use of a shared, general purpose pool (e.g. the global context).

Instances of this class should *NOT* be passed implicitly because they hold state and in some cases your application may need different instances of Blocker.

Source
Blocker.scala
Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Blocker
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def blockOn[F[_], A](fa: F[A])(implicit cs: ContextShift[F]): F[A]

    Evaluates the supplied task on the blocking execution context via blockOn.

  6. def blockOnK[F[_]](implicit cs: ContextShift[F]): ~>[F, F]

    blockOn as a natural transformation.

  7. val blockingContext: ExecutionContext
  8. def delay[F[_], A](thunk: => A)(implicit F: Sync[F], cs: ContextShift[F]): F[A]

    Like Sync#delay but the supplied thunk is evaluated on the blocking execution context.

  9. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped