UNPKG

arvo-event-handler

Version:

A complete set of orthogonal event handler and orchestration primitives for Arvo based applications, featuring declarative state machines (XState), imperative resumables for agentic workflows, contract-based routing, OpenTelemetry observability, and in-me

14 lines (13 loc) 447 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Materialized = void 0; exports.Materialized = { pending: function () { return ({ state: 'pending' }); }, resolved: function (value) { return ({ state: 'resolved', value: value }); }, isPending: function (value) { return value.state === 'pending'; }, isResolved: function (value) { return value.state === 'resolved'; }, };