This project has moved and is read-only. For the latest updates, please go here.

FromEventBasedAsyncPattern bug

Topics: Reactive (Rx)
May 4, 2011 at 12:46 PM


Seems like a bug in FromEventBasedAsyncPattern - async operation token is created once during operator invocation. It's possible to subscribe to the returned IObservable<T> twice - it will execute async operation twice with the same user token - it will cause problems if this two operations overlaps in time. Operation token should be created per every Subscribe, not only once.

May 4, 2011 at 8:28 PM

Thanks for the feedback, I'll take a look.

May 4, 2011 at 8:35 PM

This is not a bug, but thanks for reporting it anyway.

FromEventBasedAsyncPattern is hot.  Internally, an AsyncSubject is used to capture the return value so that subsequent subscriptions to the observable are shared, thus preventing multiple requests.