MCPcopy Index your code
hub / github.com/Effect-TS/effect / runSync

Function runSync

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

runSyncExitFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…