Skip to content

Instantly share code, notes, and snippets.

@mattpodwysocki
Created August 4, 2014 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpodwysocki/307a682719d65bf157b8 to your computer and use it in GitHub Desktop.
Save mattpodwysocki/307a682719d65bf157b8 to your computer and use it in GitHub Desktop.
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