Merge pull request #29 from sgrimee/patch-2
Clarify timeout option in Readme
This commit is contained in:
commit
0458d8c2b3
@ -42,6 +42,7 @@ Usage
|
|||||||
log.Println(e)
|
log.Println(e)
|
||||||
}
|
}
|
||||||
w.AddServer("127.0.0.1:4730")
|
w.AddServer("127.0.0.1:4730")
|
||||||
|
// this will give a timeout of 2 seconds. Use worker.Unlimited (0) if you want no timeout
|
||||||
w.AddFunc("ToUpper", ToUpper, worker.Immediately)
|
w.AddFunc("ToUpper", ToUpper, worker.Immediately)
|
||||||
w.AddFunc("ToUpperTimeOut5", ToUpper, 5)
|
w.AddFunc("ToUpperTimeOut5", ToUpper, 5)
|
||||||
if err := w.Ready(); err != nil {
|
if err := w.Ready(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user