MCPcopy Create free account
hub / github.com/awayjs/core / IAsyncService

Interface IAsyncService

lib/utils/AsyncServicesLibrary.ts:1–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface IAsyncService {
2 status: 'pending' | 'error' | 'done';
3 name: string;
4
5 init(): Promise<void>;
6 dispose(): void;
7}
8
9function allSettled(promises: Promise<void>[]) {
10 const wrappedPromises = promises.map(p => Promise.resolve(p)

Callers 1

initMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected