Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Effect-TS/effect
/ fail
Function
fail
packages/effect/src/Micro.ts:865–865 ·
view source on GitHub ↗
(error: E)
Source
from the content-addressed store, hash-verified
863
* @category constructors
864
*/
865
export
const
fail = <E>(error: E): Micro<never, E> => failCause(causeFail(error))
866
867
/**
868
* Creates a `Micro` effect that succeeds with a lazily evaluated value.
Callers
7
failSync
Function · 0.70
fromOption
Function · 0.70
fromEither
Function · 0.70
try_
Function · 0.70
tryPromise
Function · 0.70
Micro.ts
File · 0.70
[evaluate]
Function · 0.70
Calls
2
causeFail
Function · 0.85
failCause
Function · 0.50
Tested by
no test coverage detected