Shut down client

更新时间:
复制 MD 格式

TSDB-Client supports graceful shutdown, which blocks the client until all pending requests are processed. Call tsdb.close() at application shutdown to prevent data loss.

tsdb.close();   // Equivalent to tsdb.close(false)

Forced shutdown

To shut down the client immediately without waiting for pending requests to complete, pass true to close().

tsdb.close(true);