{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/2856","labels_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/2856/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/2856/comments","events_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/2856/events","html_url":"https://github.com/ReactiveX/RxJava/issues/2856","id":66657626,"number":2856,"title":"Question: How do I return a value from an Observable","user":{"login":"RaviH","id":141136,"avatar_url":"https://avatars.githubusercontent.com/u/141136?v=3","gravatar_id":"","url":"https://api.github.com/users/RaviH","html_url":"https://github.com/RaviH","followers_url":"https://api.github.com/users/RaviH/followers","following_url":"https://api.github.com/users/RaviH/following{/other_user}","gists_url":"https://api.github.com/users/RaviH/gists{/gist_id}","starred_url":"https://api.github.com/users/RaviH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaviH/subscriptions","organizations_url":"https://api.github.com/users/RaviH/orgs","repos_url":"https://api.github.com/users/RaviH/repos","events_url":"https://api.github.com/users/RaviH/events{/privacy}","received_events_url":"https://api.github.com/users/RaviH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-06T17:20:07Z","updated_at":"2015-04-06T19:19:22Z","closed_at":null,"body":"Hello,\r\n\r\nI am new to RxJava and I would like to return a value from an Observable.\r\n\r\nFor example: \r\n   \r\n    `public Observable<AuthenticationResult> authenticateUser(final AuthenticationRequest request);`\r\n\r\nAuthenticationResult has a property: `User user`; I would like to return the user once the Observable returns or has a value.\r\n\r\nSo I am looking for something like this:\r\n```\r\nprivate User getUser(AuthenticationRequest request) {\r\n\r\n}\r\n```\r\n\r\nCan someone please help me with this. How do I get the user without doing:\r\n\r\n`authenticateUser(request).toBlocking().single();`\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/comments/90204289","html_url":"https://github.com/ReactiveX/RxJava/issues/2856#issuecomment-90204289","issue_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/2856","id":90204289,"user":{"login":"akarnokd","id":1269832,"avatar_url":"https://avatars.githubusercontent.com/u/1269832?v=3","gravatar_id":"","url":"https://api.github.com/users/akarnokd","html_url":"https://github.com/akarnokd","followers_url":"https://api.github.com/users/akarnokd/followers","following_url":"https://api.github.com/users/akarnokd/following{/other_user}","gists_url":"https://api.github.com/users/akarnokd/gists{/gist_id}","starred_url":"https://api.github.com/users/akarnokd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akarnokd/subscriptions","organizations_url":"https://api.github.com/users/akarnokd/orgs","repos_url":"https://api.github.com/users/akarnokd/repos","events_url":"https://api.github.com/users/akarnokd/events{/privacy}","received_events_url":"https://api.github.com/users/akarnokd/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T19:19:22Z","updated_at":"2015-04-06T19:19:22Z","body":"What do you do with the result? How does this authenticate fit into your dataflow? Do you need to block the caller?"}}