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

Function custom

packages/effect/src/internal/core.ts:460–486  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

458 ) => Effect.Effect<A, E, R>
459 ): Effect.Effect<A, E, R>
460} = function() {
461 const wrapper = new EffectPrimitive(OpCodes.OP_COMMIT) as any
462 switch (arguments.length) {
463 case 2: {
464 wrapper.effect_instruction_i0 = arguments[0]
465 wrapper.commit = arguments[1]
466 break
467 }
468 case 3: {
469 wrapper.effect_instruction_i0 = arguments[0]
470 wrapper.effect_instruction_i1 = arguments[1]
471 wrapper.commit = arguments[2]
472 break
473 }
474 case 4: {
475 wrapper.effect_instruction_i0 = arguments[0]
476 wrapper.effect_instruction_i1 = arguments[1]
477 wrapper.effect_instruction_i2 = arguments[2]
478 wrapper.commit = arguments[3]
479 break
480 }
481 default: {
482 throw new Error(getBugErrorMessage("you're not supposed to end up here"))
483 }
484 }
485 return wrapper
486}
487
488/* @internal */
489export const unsafeAsync = <A, E = never, R = never>(

Callers 3

async_Function · 0.70
interruptibleMaskFunction · 0.70
uninterruptibleMaskFunction · 0.70

Calls 1

getBugErrorMessageFunction · 0.85

Tested by

no test coverage detected