Created
August 4, 2014 19:54
-
-
Save mattpodwysocki/307a682719d65bf157b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var source1 = Observable.Return(42); | |
var source2 = source1.Concat(Observable.Defer(() => | |
{ | |
Console.WriteLine("Deferred"); | |
return Observable.Return(56); | |
})); | |
source2.Take(1).Subscribe(Console.WriteLine); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment