Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align IntroToRx Start description with reality #2163

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

idg10
Copy link
Collaborator

@idg10 idg10 commented Aug 21, 2024

Fixes #2162

The IntroToRx book incorrectly describes Observable.Start as offering "lazy" evaluation. In fact, it invariably schedules the work for immediate execution (or as near to immediate as your chosen scheduler can manage). The distinguishing feature of Start is that it doesn't matter if it takes a long time for this work to complete. (So unlike Return, where you need to have the value in hand before you can get it wrapped in an IObservable<T>, Start returns an IObservable<T> immediately. The callback can take as long as it likes, and the value will become available to observers once the callback completes.)

This change updates the relevant text to describe Starts behaviour correctly.

@idg10 idg10 self-assigned this Aug 21, 2024
@idg10 idg10 merged commit 840fa39 into main Aug 28, 2024
4 checks passed
@idg10 idg10 deleted the feature/2162-fix-start-doc-bug branch August 28, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Observable.Start documentation
2 participants