{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3387","labels_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3387/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3387/comments","events_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3387/events","html_url":"https://github.com/ReactiveX/RxJava/issues/3387","id":108982953,"number":3387,"title":"Applying `scan` after `delay` will delay the initial value ","user":{"login":"mbrandonw","id":135203,"avatar_url":"https://avatars.githubusercontent.com/u/135203?v=3","gravatar_id":"","url":"https://api.github.com/users/mbrandonw","html_url":"https://github.com/mbrandonw","followers_url":"https://api.github.com/users/mbrandonw/followers","following_url":"https://api.github.com/users/mbrandonw/following{/other_user}","gists_url":"https://api.github.com/users/mbrandonw/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrandonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrandonw/subscriptions","organizations_url":"https://api.github.com/users/mbrandonw/orgs","repos_url":"https://api.github.com/users/mbrandonw/repos","events_url":"https://api.github.com/users/mbrandonw/events{/privacy}","received_events_url":"https://api.github.com/users/mbrandonw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ReactiveX/RxJava/labels/Bug","name":"Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-29T23:53:16Z","updated_at":"2015-09-30T13:57:54Z","closed_at":"2015-09-30T13:57:54Z","body":"Consider the following observable:\r\n\r\n```java\r\nObservable.just(1)\r\n  .delay(10, TimeUnit.Seconds)\r\n  .scan(2, (accum, x) -> accum + x)\r\n```\r\n\r\nI would expect this to emit `2` immediately, and then 10 seconds later emit `3`. Instead it waits 10 seconds, and then emits `2` and `3` immediately.\r\n\r\nAm I interpreting this incorrectly?"},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/comments/144414359","html_url":"https://github.com/ReactiveX/RxJava/issues/3387#issuecomment-144414359","issue_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3387","id":144414359,"user":{"login":"mbrandonw","id":135203,"avatar_url":"https://avatars.githubusercontent.com/u/135203?v=3","gravatar_id":"","url":"https://api.github.com/users/mbrandonw","html_url":"https://github.com/mbrandonw","followers_url":"https://api.github.com/users/mbrandonw/followers","following_url":"https://api.github.com/users/mbrandonw/following{/other_user}","gists_url":"https://api.github.com/users/mbrandonw/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrandonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrandonw/subscriptions","organizations_url":"https://api.github.com/users/mbrandonw/orgs","repos_url":"https://api.github.com/users/mbrandonw/repos","events_url":"https://api.github.com/users/mbrandonw/events{/privacy}","received_events_url":"https://api.github.com/users/mbrandonw/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T13:57:54Z","updated_at":"2015-09-30T13:57:54Z","body":"perf thanks!"}}