Batch, pull, polling, request/response were common b/c building asyncronous code was (much) harder
Till now...
IObservable<T>
and IObserver<T>
for .Net BCL
IEnumerable<T>
and IEnumerator<T>
interface IEnumerable<T> { IEnumerator<T> GetEnumerator(); } interface IEnumerator<T>: IDisposable { T Current { get; } bool MoveNext(); }
interface IObservable<T> { IDisposable Subscribe(IObserver<T> observer); } interface IObserver<T> { void OnCompleted(); void OnError(Exception error); void OnNext(T value); }
new[] { 1, 2, 3, 4 }
new List<string>()
Enumerable.Range(1, Int32.MaxValue)
new int[Int32.MaxValue]
People.Where(pers => pers.Age >= 21)
Observable.Range(1,3)
Observable.FromEvent("Click")
You must first compile via command line msbuild.
> msbuild .\rx.msbuild
To run the twitter example, you'll need to create the authkeys.txt file and add your own twitter API authkey
slideshow -f http://github.com/geraldb/slideshow-s6-syntax-highlighter/raw/master/s6syntax.txt
slideshow -t s6syntax.txt .\README.md -o Slideshow