Class/Object

cats.effect

Blocker

Related Docs: object Blocker | package effect

Permalink

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.

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. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def blockOn[F[_], A](fa: F[A])(implicit cs: ContextShift[F]): F[A]

    Permalink

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

  6. val blockingContext: ExecutionContext

    Permalink
  7. def delay[F[_], A](thunk: ⇒ A)(implicit F: Sync[F], cs: ContextShift[F]): F[A]

    Permalink

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

  8. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  9. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  10. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped