API Reference skuld v#0.2.3

View Source

Modules

Run a computation in a separate process, bridging yields, throws, and results back to the calling process via messages.

Skuld.Comp: Evidence-passing algebraic effects with scoped handlers.

Sentinel indicating a computation was cancelled.

Environment construction and manipulation.

External suspension for yielding to code outside Skuld's env threading.

Behaviour for effect operation handlers.

Behaviour for effects supporting handler installation via catch clauses.

Behaviour for effects supporting local interception via catch clauses.

Protocol for handling sentinel values in run/run! and generic sentinel inspection.

Protocol for unwrapping exceptions in Throw.try_catch/1.

Internal suspension for Env-aware code.

Raised when a non-computation value is used where a computation is expected.

Represents a pattern match failure in a comp block.

Error result that Catch recognizes

Exception raised when a Skuld computation throws via Throw.throw/1 and the error is not caught.

Type definitions for Skuld.Comp.

Exception raised when an Elixir exit is not caught within a Skuld computation.

Exception raised when an Elixir throw is not caught within a Skuld computation.

Represents a state change with old and new values.

AtomicState effect - thread-safe state for concurrent contexts.

Bracket effect for safe resource acquisition and cleanup.

High-level streaming API built on channels with transparent chunking.

Generic wrapper for changeset persistence operations.

Bounded channel with suspending put/take operations and error propagation.

Effect for dispatching commands through a unified pipeline.

Unified effect for database writes and transactions.

Batched database read effect using FiberPool.

Effect logging for replay, resume, and rerun capabilities.

A flat log of effect invocations.

Effect for accumulating events during computation.

Protocol for tagging events for grouping.

Effect for cooperative fiber-based concurrency.

Fresh effect - generate fresh/unique UUIDs.

FxFasterList - High-performance effectful list operations.

FxList - Effectful list operations with full control effect support.

Parallel effect - simple fork-join concurrency with built-in boundaries.

Effect for dispatching parameterizable blocking calls to pluggable backends.

Macro for defining typed port contracts with defport declarations.

Macro for bridging effectful (Provider) implementations to plain Elixir (Consumer) interfaces.

Random effect - generate random values.

Reader effect - access an immutable environment value.

State effect - mutable state threaded through computation.

Throw/Catch effects - error handling with scoped catching.

Writer effect - accumulate a log during computation.

Yield effect - coroutine-style suspension and resumption.

Cooperative fiber primitive for the FiberPool scheduler.

Unified syntax module providing do-notation macros for Skuld computations.