Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to Reactive Extensions

Introduction to Reactive Extensions

This is a talk I first gave at Nebraska Code Camp on March 10th, 2012

Avatar for Ana Betts

Ana Betts

March 10, 2012
Tweet

More Decks by Ana Betts

Other Decks in Programming

Transcript

  1. pipelines new[] { 1, 2, 3, 4, 5 } .Select(x

    => x * 5) .Where(x => x % 2 == 0) .ForEach(Console.WriteLine)
  2. linq lets us describe what to do with data when

    we get it... ...without actually having the data
  3. H

  4. e

  5. l

  6. l

  7. o

  8. (!)

  9. IObservable<string> ReturnHelloWorld() { return Observable.Return(“Hello World”); } IObservable<string> ReturnHelloWorld() {

    return Observable.Start(() => { return “Hello World”; }, Scheduler.TaskPoolScheduler); }