FlagFix
SDKs

Flush and shutdown

Drain the queue before exit.

Cette page n’a pas encore de traduction française. Le texte anglais fait foi.

Last updated on

await client.flush(2_000);
await client.shutdown(2_000);

The argument is a timeout in milliseconds. Node’s installShutdownHandlers({ client }) flushes on process signals. The browser flushes with keepalive when the document is hidden. shutdown stops flag streaming. Do not use the client afterward.

Cette page vous a-t-elle été utile ?