PureFiber
- Source:
- pure.scala
Value members
Inherited methods
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.
- Inherited from:
- Fiber
- Source:
- Fiber.scala
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.
- Inherited from:
- Fiber
- Source:
- Fiber.scala
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.
- 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.
- See also:
GenSpawn documentation for more details on cancelation
- Source:
- pure.scala