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

Function succeed

packages/effect/src/internal/result.ts:98–98  ·  view source on GitHub ↗
(success: A)

Source from the content-addressed store, hash-verified

96
97/** @internal */
98export const succeed = <A>(success: A): Result.Result<A> => new SuccessImpl(success)
99
100/** @internal */
101export const getFailure = <A, E>(self: Result.Result<A, E>): Option<E> =>

Callers 15

fiberAwaitFunction · 0.70
loopFunction · 0.70
fiberJoinAllFunction · 0.70
observerFunction · 0.70
effect.tsFile · 0.70
fromNullishOrFunction · 0.70
succeedSomeFunction · 0.70
try_Function · 0.70
promiseFunction · 0.70
tryPromiseFunction · 0.70
fromIteratorEagerUnsafeFunction · 0.70
serviceOptionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected