{"action":"created","issue":{"url":"https://api.github.com/repos/bevry/readdir-cluster/issues/2","labels_url":"https://api.github.com/repos/bevry/readdir-cluster/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/bevry/readdir-cluster/issues/2/comments","events_url":"https://api.github.com/repos/bevry/readdir-cluster/issues/2/events","html_url":"https://github.com/bevry/readdir-cluster/issues/2","id":119427285,"number":2,"title":"generalise to run provided async function on all files?","user":{"login":"jokeyrhyme","id":479816,"avatar_url":"https://avatars.githubusercontent.com/u/479816?v=3","gravatar_id":"","url":"https://api.github.com/users/jokeyrhyme","html_url":"https://github.com/jokeyrhyme","followers_url":"https://api.github.com/users/jokeyrhyme/followers","following_url":"https://api.github.com/users/jokeyrhyme/following{/other_user}","gists_url":"https://api.github.com/users/jokeyrhyme/gists{/gist_id}","starred_url":"https://api.github.com/users/jokeyrhyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokeyrhyme/subscriptions","organizations_url":"https://api.github.com/users/jokeyrhyme/orgs","repos_url":"https://api.github.com/users/jokeyrhyme/repos","events_url":"https://api.github.com/users/jokeyrhyme/events{/privacy}","received_events_url":"https://api.github.com/users/jokeyrhyme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-30T06:21:08Z","updated_at":"2015-11-30T06:42:14Z","closed_at":null,"body":"I have a use case where I'd like the MD5 hashes of each file. I was about to request that, but then I realised other use cases might want different types of hashes, and other use cases might need something else entirely.\r\n\r\nIs it possible to make this run an alternative function in the worker, provided by the consumer of this project (instead of hard coded in this project)?\r\n\r\nIs this something you'd accept a PR for?"},"comment":{"url":"https://api.github.com/repos/bevry/readdir-cluster/issues/comments/160535945","html_url":"https://github.com/bevry/readdir-cluster/issues/2#issuecomment-160535945","issue_url":"https://api.github.com/repos/bevry/readdir-cluster/issues/2","id":160535945,"user":{"login":"balupton","id":61148,"avatar_url":"https://avatars.githubusercontent.com/u/61148?v=3","gravatar_id":"","url":"https://api.github.com/users/balupton","html_url":"https://github.com/balupton","followers_url":"https://api.github.com/users/balupton/followers","following_url":"https://api.github.com/users/balupton/following{/other_user}","gists_url":"https://api.github.com/users/balupton/gists{/gist_id}","starred_url":"https://api.github.com/users/balupton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balupton/subscriptions","organizations_url":"https://api.github.com/users/balupton/orgs","repos_url":"https://api.github.com/users/balupton/repos","events_url":"https://api.github.com/users/balupton/events{/privacy}","received_events_url":"https://api.github.com/users/balupton/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T06:42:14Z","updated_at":"2015-11-30T06:42:14Z","body":"I don't believe you can pass a function to the worker, however I'd happily be proven wrong by a PR as this seems a useful addition :-) Upon review we can decide if it makes sense to be part of it or outside of it. Good plan?"}}