InterruptorStackTraceContext annotation used to store the stack frame captured at the point of interruption.
When to use
Use when you need the stack-frame annotation used by interrupt-only cause rendering.
Details
Similar to StackTrace but specific to Interrupt reasons.
Source effect/Cause.ts:19393 lines
export class class InterruptorStackTraceclass InterruptorStackTrace {
key: Identifier;
Service: {
name: string;
stack: () => string | undefined;
parent: StackFrame | undefined;
};
}
Context annotation used to store the stack frame captured at the point of
interruption.
When to use
Use when you need the stack-frame annotation used by interrupt-only cause
rendering.
Details
Similar to StackTrace but specific to Interrupt reasons.
InterruptorStackTrace
extends import ContextContext.const Service: {
<Identifier, Shape = Identifier>(
key: string
): Service<Identifier, Shape>
<Self, Shape>(): <
Identifier extends string,
E,
R = Types.unassigned,
Args extends ReadonlyArray<any> = never
>(
id: Identifier,
options?:
| {
readonly make:
| ((
...args: Args
) => Effect<Shape, E, R>)
| Effect<Shape, E, R>
| undefined
}
| undefined
) => ServiceClass<Self, Identifier, Shape> &
([Types.unassigned] extends [R]
? unknown
: {
readonly make: [Args] extends [never]
? Effect<Shape, E, R>
: (
...args: Args
) => Effect<Shape, E, R>
})
<Self>(): <
Identifier extends string,
Make extends
| Effect<any, any, any>
| ((...args: any) => Effect<any, any, any>)
>(
id: Identifier,
options: { readonly make: Make }
) => ServiceClass<
Self,
Identifier,
Make extends
| Effect<infer _A, infer _E, infer _R>
| ((
...args: infer _Args
) => Effect<infer _A, infer _E, infer _R>)
? _A
: never
> & { readonly make: Make }
}
Service<class InterruptorStackTraceclass InterruptorStackTrace {
key: Identifier;
Service: {
name: string;
stack: () => string | undefined;
parent: StackFrame | undefined;
};
}
Context annotation used to store the stack frame captured at the point of
interruption.
When to use
Use when you need the stack-frame annotation used by interrupt-only cause
rendering.
Details
Similar to StackTrace but specific to Interrupt reasons.
InterruptorStackTrace, StackFrame>()("effect/Cause/InterruptorStackTrace")
{}