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

Function runSync

packages/effect/src/Micro.ts:4305–4309  ·  view source on GitHub ↗
(effect: Micro<A, E>)

Source from the content-addressed store, hash-verified

4303 * @category execution
4304 */
4305export const runSync = <A, E>(effect: Micro<A, E>): A => {
4306 const exit = runSyncExit(effect)
4307 if (exit._tag === "Failure") throw exit.cause
4308 return exit.value
4309}
4310
4311// ----------------------------------------------------------------------------
4312// Errors

Callers

nothing calls this directly

Calls 1

runSyncExitFunction · 0.70

Tested by

no test coverage detected