调用 endpoint.close() 并返回在端点关闭时实现的 promise。
endpoint.close()
¥Calls endpoint.close() and returns a promise that fulfills when the endpoint has closed.