Skip to content

Concurrency issues #71

Description

@stugol

I'm trying to use Rx in my Ruby project, but I'm having difficulty with concurrency. I have two threads, each pushing to its own observable. I am piping these two observables into a single Subject, and subscribing to that. However, the subscription is now being called in parallel, rather than having the messages queue up. I tried using a Scheduler, but they all appear to be broken:

   /var/lib/gems/2.1.0/gems/Rx.rb-0.0.1/lib/rx/core/scheduled_observer.rb:50:in `ensure_active': undefined method `schedule_recursive_with_state' for RX::CurrentThreadScheduler:Class (NoMethodError)

Incidentally, the concurrency issue doesn't seem to occur if I call Merge instead of piping them into a Subject.

How can I get help for this issue, please?

Cheers,
Stuart.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions