From ed8c829c2f35951309ace4d8c8695dd497b5d965 Mon Sep 17 00:00:00 2001 From: Sam Grimee Date: Wed, 15 Jan 2014 14:16:03 +0100 Subject: [PATCH] Clarify timeout option in Readme worker.Immediately has value 2 which means the job will timeout after 2 seconds (maybe not very intuitive?). To have no timeout one has to pass the value 0 which is also constant worker.Unlimited (more intuitive) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f70d52a..f9df59d 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ Usage log.Println(e) } 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("ToUpperTimeOut5", ToUpper, 5) if err := w.Ready(); err != nil {