mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-03 14:13:08 +00:00
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…
x
Reference in New Issue
Block a user