Reactive Extensions API in depth: even more Zip
- Posted: Dec 09, 2009 at 9:31 AM
- 39,924 Views
- 5 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- High Quality WMV (PC, Xbox, MCE)
- MP3 (Audio only)
- MP4 (iPod, Zune HD)
- Mid Quality WMV (Lo-band, Mobile)
In this episode, Jeff dives even deeper in the semantics of Zip, and shows what happens in OnCompleted, OnError and infinite stream cases.
Visit the Reactive Extensions DevLabs page to download and learn more about Rx.
Comments Closed
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Rx is very interest. But these 2 videos on Zip were very uninforming.
Please, show us some code, go deep, show us how to use it in code!
Cool short videos on Rx framework.
What I find odd about Zip operator is that the combination of error and infinite stream does not result in error. This seems not coherent with Merge operator.
Clearly that was a mistake in the presentation. The only time Zip would never produce a value is if either stream stops producing values and never trigger done or error (it could also be that both enter this state). Furthermore, there is a race condition between done and error during zipping which makes the outcome unpredictable. It all depends on which event is observed first (done or error).
Please post a follow up video to this to correct this one. Thanks!
I think Bjorg is correct, wouldn't Zip throw an error in the case of ┴ and an exception?
Observable.Throw<int>(new InvalidDocumentationException("Video error")) .Zip(Observable.Never<int>(), (lhs, rhs) => new {Left = lhs, Right = rhs}) .Subscribe(Console.WriteLine, ex => Console.WriteLine(ex), () => Console.WriteLine("Completed.")); Console.ReadLine();Remove this comment
Remove this thread
close