@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
37 lines (23 loc) • 1.24 kB
Markdown
lang: en
title: 'API docs: context.contextsubscriptionmanager.waituntilpendingnotificationsdone'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context
permalink: /doc/en/lb4/apidocs.context.contextsubscriptionmanager.waituntilpendingnotificationsdone.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [ContextSubscriptionManager](./context.contextsubscriptionmanager.md) > [waitUntilPendingNotificationsDone](./context.contextsubscriptionmanager.waituntilpendingnotificationsdone.md)
## 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.
<b>Signature:</b>
```typescript
waitUntilPendingNotificationsDone(timeout?: number): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| timeout | number | |
<b>Returns:</b>
Promise<void>