Page Contents

Home > @loopback/context > ContextSubscriptionManager > waitUntilPendingNotificationsDone

ContextSubscriptionManager.waitUntilPendingNotificationsDone() method

Wait until observers are notified for all of currently pending notification events.

This method is for test only to perform assertions after observers are notified for relevant events.

Signature:

waitUntilPendingNotificationsDone(timeout?: number): Promise<void>;

Parameters

Parameter Type Description
timeout number (Optional)

Returns:

Promise<void>