MCPcopy
hub / github.com/Effect-TS/effect / exit

Function exit

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

Source from the content-addressed store, hash-verified

1384 * @category mapping & sequencing
1385 */
1386export const exit = <A, E, R>(self: Micro<A, E, R>): Micro<MicroExit<A, E>, never, R> =>
1387 matchCause(self, {
1388 onFailure: exitFailCause,
1389 onSuccess: exitSucceed
1390 })
1391
1392/**
1393 * 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