Skip to content

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
@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

3 participants