MCPcopy Create free account
hub / github.com/Effect-TS/effect / asyncFiberException

Function asyncFiberException

packages/effect/src/internal/runtime.ts:182–188  ·  view source on GitHub ↗
(fiber: Fiber.RuntimeFiber<A, E>)

Source from the content-addressed store, hash-verified

180}
181
182const asyncFiberException = <A, E>(fiber: Fiber.RuntimeFiber<A, E>): Runtime.AsyncFiberException<A, E> => {
183 const limit = getStackTraceLimit()
184 setStackTraceLimit(0)
185 const error = new AsyncFiberExceptionImpl(fiber)
186 setStackTraceLimit(limit)
187 return error
188}
189
190/** @internal */
191export const isAsyncFiberException = (u: unknown): u is Runtime.AsyncFiberException<unknown, unknown> =>

Callers 1

runtime.tsFile · 0.85

Calls 2

getStackTraceLimitFunction · 0.70
setStackTraceLimitFunction · 0.70

Tested by

no test coverage detected