Package hu.akarnokd.reactive4java.base

Examples of hu.akarnokd.reactive4java.base.Action0


  public static <T> Observable<T> create(
      @Nonnull final Func1<Observer<? super T>, ? extends Action0> subscribe) {
    return new Observable<T>() {
      @Override
      public Closeable register(Observer<? super T> observer) {
        final Action0 a = subscribe.invoke(observer);
        return new Closeable() {
          @Override
          public void close() {
            a.invoke();
          }
        };
      }
    };
  }
View Full Code Here

TOP

Related Classes of hu.akarnokd.reactive4java.base.Action0

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.