Skuld.Effects.FiberPool.AwaitError (skuld v0.23.0)

View Source

Structured error for a single fiber/task failure.

Thrown via Throw.throw/1 when await!/1 encounters a failed fiber.

Fields

  • :type - The kind of failure: :exception, :throw, :exit, or :cancelled
  • :error - The original error value (exception struct, throw value, exit reason, etc.)
  • :stacktrace - The stacktrace if available, or nil

Summary

Types

t()

@type t() :: %Skuld.Effects.FiberPool.AwaitError{
  error: term(),
  stacktrace: list() | nil,
  type: :exception | :throw | :exit | :cancelled
}