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

Function exit

packages/effect/src/Micro.ts:1387–1391  ·  view source on GitHub ↗
(self: Micro<A, E, R>)

Source from the content-addressed store, hash-verified

1385 * @category mapping & sequencing
1386 */
1387export const exit = <A, E, R>(self: Micro<A, E, R>): Micro<MicroExit<A, E>, never, R> =>
1388 matchCause(self, {
1389 onFailure: exitFailCause,
1390 onSuccess: exitSucceed
1391 })
1392
1393/**
1394 * Replace the error type of the given `Micro` with the full `MicroCause` object.

Callers 3

Micro.tsFile · 0.70
closeMethod · 0.70
acquireUseReleaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected