调用 endpoint.close() 并返回一个在端点关闭后完成的 Promise。
endpoint.close()
🌐 Calls endpoint.close() and returns a promise that fulfills when the endpoint has closed.