effect-io-ai

Package: effect
Module: References

References.CurrentStackFrame

Context reference for the current captured stack-frame chain for the running fiber.

When to use

Use when writing low-level tracing or diagnostic integrations that need direct access to the stack-frame chain carried by the current fiber.

Details

Effect and Layer tracing use this reference to attach stack-frame information to failures and interruption causes. It is normally managed by tracing APIs rather than provided directly by application code.

See

Signature

declare const CurrentStackFrame: Context.Reference<StackFrame | undefined>

Source

Since v4.0.0