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

Function succeed

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

Source from the content-addressed store, hash-verified

88
89/** @internal */
90export const succeed = <A>(success: A): Result.Result<A> => {
91 const a = Object.create(SuccessProto)
92 a.success = success
93 return a
94}
95
96/** @internal */
97export const getFailure = <A, E>(self: Result.Result<A, E>): Option<E> =>

Callers 15

fiberAwaitFunction · 0.70
loopFunction · 0.70
fiberJoinAllFunction · 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
[contA]Function · 0.70
serviceOptionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected