session.close()
- 返回:<Promise>
启动会话的优雅关闭。现有的流将被允许完成,但不会开启新的流。一旦所有流都已关闭,会话将被销毁。返回的承诺将在会话被销毁后兑现。
🌐 Initiate a graceful close of the session. Existing streams will be allowed to complete but no new streams will be opened. Once all streams have closed, the session will be destroyed. The returned promise will be fulfilled once the session has been destroyed.