Answered EnumerableEx.Merge - Missing

  • Tuesday, June 22, 2010 9:19 AM
     
     

    Hi,

    Why is EnumerableEx.Merge no longer included in the latest Rx release?  What is the recommended replacement that we should use?

    Thanks,
    Dave


    http://davesexton.com/blog

Answers

  • Tuesday, June 29, 2010 10:11 PM
     
     Answered

    It is just as easy to convert to and from Observable and use Merge or Amb.

     

    Without creating a cyclic dependency between System.Reactive and System.Interactive, it meant that we had to implement all async code manually in System.Interactive which lead to code bloat and duplication.

     

    Jeffrey

All Replies

  • Tuesday, June 22, 2010 9:29 AM
     
     

    Hi,

    I'm using SelectMany instead of Merge and it seems to be working fine.

    - Dave


    http://davesexton.com/blog
  • Tuesday, June 22, 2010 9:48 AM
     
     
    Hi Dave,

    For some reason the Rx team have gone off the idea of interactive extensions that introduce multi-threading.

    Latest release notes;

    "Removed Amb & Merge from System.Interactive in favor of ToObservable.Amb using System.Reactive"

    Enumerable.Range(1,100).Merge(Enumerable.Range(101,100))
    ~=
    Enumerable.Range(1,100).ToObservable().Merge(Enumerable.Range(101,100).ToObservable()).ToEnumerable()



    Maybe someone from the team can shed some light on this.
  • Tuesday, June 22, 2010 11:06 AM
     
     

    Thanks James, I didn't notice that in the release notes.

    - Dave


    http://davesexton.com/blog
  • Tuesday, June 29, 2010 10:11 PM
     
     Answered

    It is just as easy to convert to and from Observable and use Merge or Amb.

     

    Without creating a cyclic dependency between System.Reactive and System.Interactive, it meant that we had to implement all async code manually in System.Interactive which lead to code bloat and duplication.

     

    Jeffrey