Page Contents

Home > @loopback/context > Context > waitUntilPendingNotificationsDone

Context.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:

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

Parameters

Parameter Type Description
timeout number  

Returns:

Promise<void>