{"action":"closed","issue":{"url":"https://api.github.com/repos/async-interop/promise/issues/5","repository_url":"https://api.github.com/repos/async-interop/promise","labels_url":"https://api.github.com/repos/async-interop/promise/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/async-interop/promise/issues/5/comments","events_url":"https://api.github.com/repos/async-interop/promise/issues/5/events","html_url":"https://github.com/async-interop/promise/issues/5","id":147479536,"number":5,"title":"always() would be useful","user":{"login":"joshdifabio","id":5609851,"avatar_url":"https://avatars.githubusercontent.com/u/5609851?v=3","gravatar_id":"","url":"https://api.github.com/users/joshdifabio","html_url":"https://github.com/joshdifabio","followers_url":"https://api.github.com/users/joshdifabio/followers","following_url":"https://api.github.com/users/joshdifabio/following{/other_user}","gists_url":"https://api.github.com/users/joshdifabio/gists{/gist_id}","starred_url":"https://api.github.com/users/joshdifabio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshdifabio/subscriptions","organizations_url":"https://api.github.com/users/joshdifabio/orgs","repos_url":"https://api.github.com/users/joshdifabio/repos","events_url":"https://api.github.com/users/joshdifabio/events{/privacy}","received_events_url":"https://api.github.com/users/joshdifabio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-11T16:14:56Z","updated_at":"2016-04-11T16:20:18Z","closed_at":"2016-04-11T16:20:18Z","body":"Every now and then I find myself having to write `then($fn, $fn)`. In cases where I want to use an inline closure this means I have to write:\r\n\r\n```php\r\n$fn = function () { /* do stuff */ };\r\n$p->then($fn, $fn);\r\n```\r\n\r\nIn the same spirit as `except()`, it would be nice to have an `always()` method, like [`React\\Promise\\PromiseInterface`](https://github.com/reactphp/promise/blob/v2.4.0/src/ExtendedPromiseInterface.php#L20), so we can simply write:\r\n\r\n```php\r\n$p->always(function () { /* do stuff */ });\r\n```"}}