SpotFiber

spot.internals.SpotFiber
See theSpotFiber companion object
final case class SpotFiber[A, U <: IO](underlying: Fiber[A, U]) extends Fiber[Computation, Throwable, A]

Attributes

Companion
object
Graph
Supertypes
trait Product
trait Equals
trait Fiber[Computation, Throwable, A]
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def cancel: Computation[Unit, U]

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

Definition Classes
Fiber
override def join: Computation[Outcome[Computation, Throwable, A], U]

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

Definition Classes
Fiber

Inherited methods

def joinWith(onCancel: Computation[A, U])(implicit F: MonadCancel[Computation, Throwable]): Computation[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
def joinWithNever(implicit F: GenSpawn[Computation, Throwable]): Computation[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
def joinWithUnit(implicit F: MonadCancel[Computation, Throwable], ev: Unit <:< A): Computation[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
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product