UNPKG

@medusajs/test-utils

Version:
14 lines 589 B
type WaitSubscribersExecutionOptions = { timeout?: number; }; /** * Allows you to wait for all subscribers to execute for a given event. * It ensures that concurrent waits for the same event are queued and executed sequentially. * * @param eventName - The name of the event to wait for. * @param eventBus - The event bus instance. * @param options - Options including timeout. */ export declare const waitSubscribersExecution: (eventName: string | symbol, eventBus: any, options?: WaitSubscribersExecutionOptions) => Promise<any>; export {}; //# sourceMappingURL=events.d.ts.map