Add closeWait to httpServer

This commit is contained in:
coffeepots 2018-09-13 18:06:33 +01:00
parent ef86bf3bce
commit bb9896d693
1 changed files with 5 additions and 0 deletions

View File

@ -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()