Take the 2-minute tour ×  As I understand Subscribe method
should be asynchronous whereas Run is synchronous. But this
piece of code is working in synchronous manner. Can anybody fix
it?  using System; using System.Collections.Generic; using
System.Linq; using System.Text; using System.Reactive.Linq;
namespace RxExtensionsDemo     class Program         static void
Main(string[] args)             IObservable<int> source =
Observable.Generate<int, int>(0, i => i < 10000, i => i + 1, i
=> i * i);              IDisposable subscription =
source.Subscribe(x => { Console.WriteLine("Received {0} from
source", x); }, ex =>                 Console.WriteLine("Error
occured");              }, () =>
Console.WriteLine("Source said there are no more messages to
follow");    I always see Asynchronous written to console at the
last.  share|improve this question I don't think it's guaranteed
that Subscribe is always async. –  CodesInChaos Sep 8 '11 at
10:51 and even if it is there's no guarantee that one threa