commit | 4f7ee51e9a73e05e5b2dbc6cfa178ace2f83b155 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@bazanski.pl> | Sun Oct 14 18:20:59 2018 +0100 |
committer | Serge Bazanski <serge@bazanski.pl> | Sun Oct 14 18:20:59 2018 +0100 |
tree | ca6e43ff8eaeb61e1c63886d12a8e96bd31c2314 | |
parent | c99e0b916643515374270ec111eccfd2f2973ef4 [diff] [blame] |
add background context
diff --git a/README b/README index 2147adb..d2c369f 100644 --- a/README +++ b/README
@@ -32,8 +32,10 @@ } // start any other background processing... + // (you can use m.Context() to get a context that will get + // canceled when the service is about to shut down) - select {} + <-m.Done() } Usage (running)