magodo ebc479ef2c Wait() option now accept *sync.WaitGroup
The original signature accept a boolean, and it feel like a little
verbose, since when people pass in this option, he/she always want to
pass a `true`.

Now if input `wg` is nil, it has same effect as passing `true` in
original code. Furthermore, if user want's finer grained control during
shutdown, one can pass in a predefined `wg`, so that server will wait
against it during shutdown.
2019-05-27 21:17:57 +08:00
..
2018-03-03 11:53:52 +00:00
2018-11-20 10:30:53 +00:00
2016-05-28 22:30:47 +01:00
2018-03-03 11:53:52 +00:00
2019-03-19 00:21:25 +00:00
2019-05-24 20:06:27 +08:00
2019-01-10 21:25:31 +00:00
2019-02-01 15:57:34 +00:00
2016-05-26 18:01:02 +01:00
2019-02-04 13:13:03 +00:00
2019-01-09 19:28:13 +00:00
2019-01-22 13:52:18 +00:00
2019-01-18 10:12:57 +00:00
2019-05-24 20:06:27 +08:00
2018-04-14 19:24:17 +01:00