veffect
Version:
powerful TypeScript validation library built on the robust foundation of Effect combining exceptional type safety, high performance, and developer experience. Taking inspiration from Effect's functional principles, VEffect delivers a balanced approach tha
28 lines • 626 B
JavaScript
/** @internal */
export const OP_INTERRUPT_SIGNAL = "InterruptSignal";
/** @internal */
export const OP_STATEFUL = "Stateful";
/** @internal */
export const OP_RESUME = "Resume";
/** @internal */
export const OP_YIELD_NOW = "YieldNow";
/** @internal */
export const interruptSignal = cause => ({
_tag: OP_INTERRUPT_SIGNAL,
cause
});
/** @internal */
export const stateful = onFiber => ({
_tag: OP_STATEFUL,
onFiber
});
/** @internal */
export const resume = effect => ({
_tag: OP_RESUME,
effect
});
/** @internal */
export const yieldNow = () => ({
_tag: OP_YIELD_NOW
});
//# sourceMappingURL=fiberMessage.js.map