Rework blocking logic, up to 0.1.2

This commit is contained in:
jar3b
2019-04-09 17:55:36 +03:00
parent a980f1f8d2
commit ac0f979ef9
2 changed files with 7 additions and 8 deletions

View File

@@ -10,5 +10,6 @@ waiter.AddCloseHandler(func() {
nacl.FinalizeStan()
}, false)
waiter.Wait(true)
// blocking wait, if no need to block (with http server, for example), you can omit .Wait() call
waiter.Wait()
```