PureFiber

cats.effect.kernel.testkit.pure$.PureFiber
final class PureFiber[E, A](val state0: MVar[Outcome[[_] =>> PureConc[E, _$80], E, A]]) extends Fiber[[_] =>> PureConc[E, _$81], E, A] with Serializable

Attributes

Source:
pure.scala
Graph
Supertypes
trait Fiber[[_] =>> PureConc[E, _$81], E, A]
trait Serializable
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

def joinWith(onCancel: PureConc[E, A])(implicit F: MonadCancel[[_] =>> PureConc[E, _$81], E]): F[A]

Awaits the completion of the bound fiber and returns its result once it completes.

Awaits the completion of the bound fiber and returns its result once it completes.

If the fiber completes with Outcome.Succeeded, the successful value is returned. If the fiber completes with Outcome.Errored, the error is raised. If the fiber completes with Outcome.Canceled, onCancel is run.

Attributes

Inherited from:
Fiber
Source:
Fiber.scala
def joinWithNever(implicit F: GenSpawn[[_] =>> PureConc[E, _$81], E]): F[A]

Awaits the completion of the bound fiber and returns its result once it completes.

Awaits the completion of the bound fiber and returns its result once it completes.

If the fiber completes with Outcome.Succeeded, the successful value is returned. If the fiber completes with Outcome.Errored, the error is raised. If the fiber completes with Outcome.Canceled, the caller is indefinitely suspended without termination.

Attributes

Inherited from:
Fiber
Source:
Fiber.scala
def joinWithUnit(implicit F: MonadCancel[[_] =>> PureConc[E, _$81], E], ev: Unit <:< A): F[A]

Awaits the completion of the bound fiber and returns its result once it completes.

Awaits the completion of the bound fiber and returns its result once it completes.

If the fiber completes with Outcome.Succeeded, the successful value is returned. If the fiber completes with Outcome.Errored, the error is raised. If the fiber completes with Outcome.Canceled, the result is ignored.

Attributes

Inherited from:
Fiber
Source:
Fiber.scala

Concrete fields

Requests the cancelation of the fiber bound to this Fiber handle and awaits its finalization.

Requests the cancelation of the fiber bound to this Fiber handle and awaits its finalization.

cancel semantically blocks the caller until finalization of the cancellee has completed. This means that if the cancellee is currently masked, cancel will block until it is unmasked and finalized.

Cancelation is idempotent, so repeated calls to cancel simply block until finalization is complete. If cancel is called after finalization is complete, it will return immediately.

cancel is uncancelable; a fiber that is canceling another fiber is masked from cancelation.

Attributes

See also:

GenSpawn documentation for more details on cancelation

Source:
pure.scala
val join: PureConc[E, Outcome[[_] =>> PureConc[E, _$91], E, A]]

Awaits the completion of the fiber bound to this Fiber and returns its Outcome once it completes.

Awaits the completion of the fiber bound to this Fiber and returns its Outcome once it completes.

Attributes

Source:
pure.scala
val state0: MVar[Outcome[[_] =>> PureConc[E, _$80], E, A]]

Attributes

Source:
pure.scala