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

RxJava

 RxJava

Palestra sobre RxJava na trilha de Scala do TDC 2013 em SP

Breno Ferreira

July 13, 2013
Tweet

More Decks by Breno Ferreira

Other Decks in Programming

Transcript

  1. ITERATOR VS OBSERVER interface IEnumerable<T> { IEnumerator<T> GetEnumerator(); } interface

    IEnumerator<T> { bool MoveNext(); //throws Ex T Current { get; } }
  2. ITERATOR VS OBSERVER interface IObservable<T> { IEnumerator<T> GetEnumerator(); } interface

    IEnumerator<T> { bool MoveNext(); //throws Ex T Current { get; } }
  3. ITERATOR VS OBSERVER interface IObservable<T> { IEnumerator<T> GetEnumerator(); } interface

    IObserver<T> { bool MoveNext(); //throws Ex T Current { get; } }
  4. ITERATOR VS OBSERVER interface IObservable<T> { void Subscribe(IObserver<T> observer); }

    interface IObserver<T> { bool MoveNext(); //throws Ex T Current { get; } }
  5. ITERATOR VS OBSERVER interface IObservable<T> { void Subscribe(IObserver<T> observer); }

    interface IObserver<T> { void OnNext(T item) T Current { get; } }
  6. ITERATOR VS OBSERVER interface IObservable<T> { void Subscribe(IObserver<T> observer); }

    interface IObserver<T> { void OnNext(T item) void OnError(Exception ex) }
  7. ITERATOR VS OBSERVER interface IObservable<T> { void Subscribe(IObserver<T> observer); }

    interface IObserver<T> { void OnNext(T item) void OnError(Exception ex) void OnCompleted() }
  8. O VERDADEIRO PODER DO RX • filtros (where, distinct, skip,

    take, all, any) • agregações (count, min, max, avg, sum, aggregate) • Transformações (map, flatMap) • Combinações (concat, merge, zip) • Schedulers
  9. RXJAVA Implementação do Rx for .NET em Java Feito pela

    Netflix Adaptors para Scala, Groovy, Clojure, JRuby