@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
67 lines (35 loc) • 1.42 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.
**Signature:**
```typescript
waitUntilPendingNotificationsDone(timeout?: number): Promise<void>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
timeout
</td><td markdown="1">
number
</td><td markdown="1">
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
Promise<void>