@medusajs/test-utils
Version:
Test utils for Medusa
14 lines • 589 B
TypeScript
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