MCPcopy Index your code
hub / github.com/Effect-TS/effect / asyncExampleError

Function asyncExampleError

packages/effect/test/Effect/finalization.test.ts:17–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15const ExampleError = new Error("Oh noes!")
16
17const asyncExampleError = <A>(): Effect.Effect<A, unknown> => {
18 return Effect.async((cb) => {
19 cb(Effect.fail(ExampleError))
20 })
21}
22
23const asyncVoid = <E>(): Effect.Effect<void, E> => {
24 return Effect.async((cb) => {

Callers 1

Calls 1

failMethod · 0.65

Tested by

no test coverage detected