{"action":"created","issue":{"url":"https://api.github.com/repos/elmish/elmish/issues/162","repository_url":"https://api.github.com/repos/elmish/elmish","labels_url":"https://api.github.com/repos/elmish/elmish/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/elmish/elmish/issues/162/comments","events_url":"https://api.github.com/repos/elmish/elmish/issues/162/events","html_url":"https://github.com/elmish/elmish/issues/162","id":396173480,"node_id":"MDU6SXNzdWUzOTYxNzM0ODA=","number":162,"title":"To add the exit criteria or not","user":{"login":"et1975","id":623703,"node_id":"MDQ6VXNlcjYyMzcwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/623703?v=4","gravatar_id":"","url":"https://api.github.com/users/et1975","html_url":"https://github.com/et1975","followers_url":"https://api.github.com/users/et1975/followers","following_url":"https://api.github.com/users/et1975/following{/other_user}","gists_url":"https://api.github.com/users/et1975/gists{/gist_id}","starred_url":"https://api.github.com/users/et1975/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/et1975/subscriptions","organizations_url":"https://api.github.com/users/et1975/orgs","repos_url":"https://api.github.com/users/et1975/repos","events_url":"https://api.github.com/users/et1975/events{/privacy}","received_events_url":"https://api.github.com/users/et1975/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-01-05T15:18:52Z","updated_at":"2019-01-05T22:37:39Z","closed_at":null,"author_association":"MEMBER","body":"cc @alfonsogarciacaro @MangelMaxime @Zaid-Ajaj @cmeeren \r\n\r\nI'm thinking to extend `Program` with an exit criteria. It would be just a predicate that tests for a specific value of '`msg',  i.e. `'msg -> bool' and be invoked by the dispatch loop to determine if it needs to exit. What do you guys think?"},"comment":{"url":"https://api.github.com/repos/elmish/elmish/issues/comments/451697692","html_url":"https://github.com/elmish/elmish/issues/162#issuecomment-451697692","issue_url":"https://api.github.com/repos/elmish/elmish/issues/162","id":451697692,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTY5NzY5Mg==","user":{"login":"Nhowka","id":10579995,"node_id":"MDQ6VXNlcjEwNTc5OTk1","avatar_url":"https://avatars2.githubusercontent.com/u/10579995?v=4","gravatar_id":"","url":"https://api.github.com/users/Nhowka","html_url":"https://github.com/Nhowka","followers_url":"https://api.github.com/users/Nhowka/followers","following_url":"https://api.github.com/users/Nhowka/following{/other_user}","gists_url":"https://api.github.com/users/Nhowka/gists{/gist_id}","starred_url":"https://api.github.com/users/Nhowka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nhowka/subscriptions","organizations_url":"https://api.github.com/users/Nhowka/orgs","repos_url":"https://api.github.com/users/Nhowka/repos","events_url":"https://api.github.com/users/Nhowka/events{/privacy}","received_events_url":"https://api.github.com/users/Nhowka/received_events","type":"User","site_admin":false},"created_at":"2019-01-05T22:37:39Z","updated_at":"2019-01-05T22:37:39Z","author_association":"NONE","body":"A way would be via a `ref`. Something like:\r\n\r\n```fs\r\nlet killSwitch = ref ignore\r\n\r\nProgram.mkProgram init update view\r\n|> Program.withKillSwitch killSwitch\r\n|> Program.run\r\n```\r\n\r\nAnd then `!killSwitch ()` could be called."}}
{"actor":{"display_login":"Nhowka"}}