Skip to content

Commit 6827d20

Browse files
committed
extended the shutdown explanation
Signed-off-by: Michael Beemer <[email protected]>
1 parent 41db387 commit 6827d20

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/client/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ client.addHandler(ProviderEvents.Error, async (eventDetails) => {
221221
222222
### Shutdown:
223223
224-
The OpenFeature API provides a close function to perform a cleanup of all providers attached to any client.
224+
The OpenFeature API provides a close function to perform a cleanup of all registered providers.
225+
This should only be called when your application is in the process of shutting down.
225226
226227
```typescript
227228
import { OpenFeature, ProviderEvents } from '@openfeature/web-sdk';

packages/server/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ client.addHandler(ProviderEvents.Error, async (eventDetails) => {
210210
211211
### Shutdown:
212212
213-
The OpenFeature API provides a close function to perform a cleanup of all providers attached to any client.
213+
The OpenFeature API provides a close function to perform a cleanup of all registered providers.
214+
This should only be called when your application is in the process of shutting down.
214215
215216
```typescript
216217
import { OpenFeature, ProviderEvents } from '@openfeature/web-sdk';

0 commit comments

Comments
 (0)