UNPKG

@mondaydotcomorg/atp-compiler

Version:

Production-ready compiler for transforming async iteration patterns into resumable operations with checkpoint-based state management

39 lines 1.71 kB
/** * Runtime Function Names * * These constants define the names of runtime functions used by the ATP compiler * when transforming code. They must match the implementations provided by the server. */ /** * Promise-related runtime functions */ export declare const RuntimeFunction: { readonly RESUMABLE_PROMISE_ALL: "resumablePromiseAll"; readonly RESUMABLE_PROMISE_ALL_SETTLED: "resumablePromiseAllSettled"; readonly BATCH_PARALLEL: "batchParallel"; readonly RESUMABLE_FOR_OF: "resumableForOf"; readonly RESUMABLE_FOR_LOOP: "resumableForLoop"; readonly RESUMABLE_WHILE: "resumableWhile"; readonly RESUMABLE_MAP: "resumableMap"; readonly RESUMABLE_FOR_EACH: "resumableForEach"; readonly RESUMABLE_FILTER: "resumableFilter"; readonly RESUMABLE_REDUCE: "resumableReduce"; readonly RESUMABLE_FIND: "resumableFind"; readonly RESUMABLE_SOME: "resumableSome"; readonly RESUMABLE_EVERY: "resumableEvery"; readonly RESUMABLE_FLAT_MAP: "resumableFlatMap"; }; export type RuntimeFunctionType = (typeof RuntimeFunction)[keyof typeof RuntimeFunction]; /** * Runtime functions that must execute inside the isolate (cannot cross boundary). * These receive Promise arguments or callback functions that can't be cloned. * * NOTE: BATCH_PARALLEL is NOT included because it receives serializable callback * descriptors and needs to communicate with the host for callback execution. */ export declare const IN_ISOLATE_RUNTIME_FUNCTIONS: readonly RuntimeFunctionType[]; /** * Check if a runtime function must execute inside the isolate */ export declare function isInIsolateRuntimeFunction(name: string): boolean; //# sourceMappingURL=runtime-functions.d.ts.map