UNPKG

durable-execution

Version:

A durable task engine for running tasks durably and resiliently

23 lines 727 B
import type { StandardSchemaV1 } from '@standard-schema/spec'; /** * Sleep with jitter. * * @param ms - The time to sleep. * @returns A promise that resolves after the time has passed. */ export declare function sleepWithJitter(ms: number): Promise<void>; /** * Generate a random id. * * @param size - The length of the id. If not provided, it will be 24. * @returns A random id. */ export declare const generateId: (size?: number) => string; /** * Summarize standard schema issues. * * @param issues - The issues to summarize. * @returns A summary of the issues. */ export declare function summarizeStandardSchemaIssues(issues: ReadonlyArray<StandardSchemaV1.Issue>): string; //# sourceMappingURL=utils.d.ts.map