{"action":"opened","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/1898","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/1898/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/1898/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/1898/events","html_url":"https://github.com/mochajs/mocha/issues/1898","id":107417171,"number":1898,"title":"Observables","user":{"login":"thejameskyle","id":952783,"avatar_url":"https://avatars.githubusercontent.com/u/952783?v=3","gravatar_id":"","url":"https://api.github.com/users/thejameskyle","html_url":"https://github.com/thejameskyle","followers_url":"https://api.github.com/users/thejameskyle/followers","following_url":"https://api.github.com/users/thejameskyle/following{/other_user}","gists_url":"https://api.github.com/users/thejameskyle/gists{/gist_id}","starred_url":"https://api.github.com/users/thejameskyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejameskyle/subscriptions","organizations_url":"https://api.github.com/users/thejameskyle/orgs","repos_url":"https://api.github.com/users/thejameskyle/repos","events_url":"https://api.github.com/users/thejameskyle/events{/privacy}","received_events_url":"https://api.github.com/users/thejameskyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-20T20:53:35Z","updated_at":"2015-09-20T20:53:35Z","closed_at":null,"body":"So there's this cool thing called `Observable`s that is (likely) coming to the language soon ([ref 1](https://github.com/zenparsing/es-observable), [ref 2](https://github.com/tc39/ecma262)).\r\n\r\nThey are similar to promises in a number of ways.\r\n- They both attempt to deal with asynchronous actions in a reasonable manner.\r\n- They both define a standard interface that can be implemented and extended by third parties.\r\n\r\nSince Mocha supports returning promises in order to avoid using the `done` callback, it'd be nice if it did the same thing with observables:\r\n\r\n```js\r\nit('should do something with an Observable', () => {\r\n  return Observable.of(1, 2, 3).subscribe(...);\r\n});\r\n```\r\n\r\nPeople are already using these with http://reactivex.io/."}}