Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ fail
Function
fail
packages/effect/src/Micro.ts:866–866 ·
view source on GitHub ↗
(error: E)
Source
from the content-addressed store, hash-verified
864
* @category constructors
865
*/
866
export
const
fail = <E>(error: E): Micro<never, E> => failCause(causeFail(error))
867
868
/**
869
* 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