Add closeWait to httpServer
This commit is contained in:
parent
ef86bf3bce
commit
bb9896d693
|
@ -319,3 +319,8 @@ proc close*(server: RpcHttpServer) =
|
|||
## Cleanup resources of RPC server.
|
||||
for item in server.servers:
|
||||
item.close()
|
||||
|
||||
proc closeWait*(server: RpcHttpServer) {.async.} =
|
||||
## Cleanup resources of RPC server.
|
||||
for item in server.servers:
|
||||
await item.closeWait()
|
||||
|
|
Loading…
Reference in New Issue