{"action":"closed","issue":{"url":"https://api.github.com/repos/strongback/strongback-java/issues/23","labels_url":"https://api.github.com/repos/strongback/strongback-java/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/strongback/strongback-java/issues/23/comments","events_url":"https://api.github.com/repos/strongback/strongback-java/issues/23/events","html_url":"https://github.com/strongback/strongback-java/issues/23","id":112476624,"number":23,"title":"Simplify submitting commands using lambdas or method references","user":{"login":"rhauch","id":84732,"avatar_url":"https://avatars.githubusercontent.com/u/84732?v=3","gravatar_id":"","url":"https://api.github.com/users/rhauch","html_url":"https://github.com/rhauch","followers_url":"https://api.github.com/users/rhauch/followers","following_url":"https://api.github.com/users/rhauch/following{/other_user}","gists_url":"https://api.github.com/users/rhauch/gists{/gist_id}","starred_url":"https://api.github.com/users/rhauch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhauch/subscriptions","organizations_url":"https://api.github.com/users/rhauch/orgs","repos_url":"https://api.github.com/users/rhauch/repos","events_url":"https://api.github.com/users/rhauch/events{/privacy}","received_events_url":"https://api.github.com/users/rhauch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-20T22:54:50Z","updated_at":"2015-10-20T23:04:49Z","closed_at":"2015-10-20T23:04:49Z","body":"We currently have a method to submit a command for execution:\r\n\r\n    Strongback.submit(Command)\r\n\r\nWhile this works, we should add overloaded methods that take:\r\n\r\n* a `Runnable` function that executes one time;\r\n* a `Runnable` function that executes one time, a time to pause, and another function that is called after the pause time;\r\n* a `BooleanSupplier` that executes repeatedly while the function returns `true`;\r\n* a `BooleanSupplier` that executes repeatedly while the function returns `true`, and a maximum duration that the command should run\r\n"}}