Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Effect-TS/effect
/ failSync
Function
failSync
packages/effect/src/Micro.ts:982–982 ·
view source on GitHub ↗
(error: LazyArg<E>)
Source
from the content-addressed store, hash-verified
980
* @category constructors
981
*/
982
export
const
failSync = <E>(error: LazyArg<E>): Micro<never, E> => suspend(() => fail(error()))
983
984
/**
985
* Converts an `Option` into a `Micro` effect, that will fail with
Callers
nothing calls this directly
Calls
3
suspend
Function · 0.70
fail
Function · 0.70
error
Function · 0.70
Tested by
no test coverage detected