{"action":"closed","issue":{"url":"https://api.github.com/repos/robfig/cron/issues/44","repository_url":"https://api.github.com/repos/robfig/cron","labels_url":"https://api.github.com/repos/robfig/cron/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/robfig/cron/issues/44/comments","events_url":"https://api.github.com/repos/robfig/cron/issues/44/events","html_url":"https://github.com/robfig/cron/issues/44","id":129734197,"number":44,"title":"Improper statement in doc about job concurrency","user":{"login":"andyxning","id":2404712,"avatar_url":"https://avatars.githubusercontent.com/u/2404712?v=3","gravatar_id":"","url":"https://api.github.com/users/andyxning","html_url":"https://github.com/andyxning","followers_url":"https://api.github.com/users/andyxning/followers","following_url":"https://api.github.com/users/andyxning/following{/other_user}","gists_url":"https://api.github.com/users/andyxning/gists{/gist_id}","starred_url":"https://api.github.com/users/andyxning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyxning/subscriptions","organizations_url":"https://api.github.com/users/andyxning/orgs","repos_url":"https://api.github.com/users/andyxning/repos","events_url":"https://api.github.com/users/andyxning/events{/privacy}","received_events_url":"https://api.github.com/users/andyxning/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-01-29T11:06:17Z","updated_at":"2016-08-09T13:35:45Z","closed_at":"2016-08-09T13:35:45Z","body":"The doc statements, below, makes me feel ambiguous.\r\n> Callers may register Funcs to be invoked on a given schedule. Cron will run them in their own goroutines.\r\n\r\nI think `cron` will run each cron job in different goroutines. I.e., `cron` will handle the concurrency about the jobs.   \r\nHowever, after reading the code in [cron.go](https://github.com/robfig/cron/blob/master/cron.go#L153-L162), i find that `cron` just call the registered job and handle them sequentially. \r\nI think this statements may be more proper:\r\n> Callers may registers Funcs to be invoked on a given schedule. \r\n> Single cron instance will run registered Funcs sequentially. \r\n> Different cron instances will be run concurrently by cron package itself."}}
{"actor":{"display_login":"robfig"}}