{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/rxjs/issues/1865","repository_url":"https://api.github.com/repos/ReactiveX/rxjs","labels_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/1865/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/1865/comments","events_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/1865/events","html_url":"https://github.com/ReactiveX/rxjs/issues/1865","id":169255212,"node_id":"MDU6SXNzdWUxNjkyNTUyMTI=","number":1865,"title":"timeout() operator always emits error, even if given a promise or another observable","user":{"login":"igorsechyn","id":1820005,"node_id":"MDQ6VXNlcjE4MjAwMDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1820005?v=4","gravatar_id":"","url":"https://api.github.com/users/igorsechyn","html_url":"https://github.com/igorsechyn","followers_url":"https://api.github.com/users/igorsechyn/followers","following_url":"https://api.github.com/users/igorsechyn/following{/other_user}","gists_url":"https://api.github.com/users/igorsechyn/gists{/gist_id}","starred_url":"https://api.github.com/users/igorsechyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorsechyn/subscriptions","organizations_url":"https://api.github.com/users/igorsechyn/orgs","repos_url":"https://api.github.com/users/igorsechyn/repos","events_url":"https://api.github.com/users/igorsechyn/events{/privacy}","received_events_url":"https://api.github.com/users/igorsechyn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-03T23:06:56Z","updated_at":"2018-06-07T01:41:06Z","closed_at":"2016-08-03T23:15:42Z","author_association":"NONE","body":"<!--\nThank you for raising your concerns, we appreciate your feedback and contributions to this repository.\n\nBefore you continue, consider the following:\n\nIf you have a \"How do I do ...?\" question, it is better for you and for us that this question is placed in [StackOverflow](http://stackoverflow.com/questions/tagged/rxjs5) or some chat channel. This way, you are making it easier for others to learn from your experiences too.\n\nThese \"Issues\" are meant only for technical problems, bugs, and proposals related to the library.\n\nIf your issue is a bug, please follow the format below:\n-->\n\n**RxJS version:** 5.0.0-beta.10\n\n**Code to reproduce:** \n\n```\nconst rx = require('rxjs');\nconst source = rx.Observable\n    .of(42)\n    .delay(5000)\n    .timeout(200, Promise.resolve(42));\n\nconst subscription = source.subscribe(\n    function (x) { console.log('Next: %s', x); },\n    function (err) { console.log('Error: %s', err); },\n    function () { console.log('Completed'); });\n```\n\n**Expected behavior:**\nOutput: Next 42\n**Actual behavior:**\nOutput: Error: [object Object]\n**Additional information:**\nAccording to documentation the timeout operator, if passed a promise or another observable, should emit this value. Currently, regardless of what is being passed into the operator, the value is being emitted as error\n"},"comment":{"url":"https://api.github.com/repos/ReactiveX/rxjs/issues/comments/395265522","html_url":"https://github.com/ReactiveX/rxjs/issues/1865#issuecomment-395265522","issue_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/1865","id":395265522,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTI2NTUyMg==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-06-07T01:41:06Z","updated_at":"2018-06-07T01:41:06Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.\n"}}
{"actor":{"display_login":"lock"}}