Subject based event bus (rxandroid-eventbus)

This is a long standing thing I meant to pull out of our app which has proven invaluable for us. It's just a thin wrapper around Rx subjects, but with an API that lends itself well for dependency injection.

Sample activity:
https://github.com/ReactiveX/RxAndroid/pull/60/files#diff-18

Sample service:
https://github.com/ReactiveX/RxAndroid/pull/60/files#diff-19
:-D
On Nov 20, 2014 7:58 PM, "Hamid" <notifications@github.com> wrote:

> In rxandroid-eventbus/src/main/java/rx/android/eventbus/EventBus.java:
>
> > +public interface EventBus {
> > +
> > +    /**
> > +     * Subscribes <code>observer</code> to <code>queue</code>.
> > +     * <p>
> > +     * This variant always delivers notifications on the Android main thread.
> > +     */
> > +    <T> Subscription subscribe(EventQueue<T> queue, Observer<T> observer);
> > +
> > +    /**
> > +     * Subscribes <code>observer</code> to <code>queue</code>.
> > +     * <p>
> > +     * Unlike {@link #subscribe(EventQueue, Observer)}, this variant delivers notifications
> > +     * on the same thread as the event source.
> > +     */
> > +    <T> Subscription subscribeImmediate(EventQueue<T> queue, Observer<T> observer);
>
> @mttkay <https://github.com/mttkay> I have no clue either, but I bet it
> would be awesome whatever it is :)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ReactiveX/RxAndroid/pull/60/files#r20668658>.
>