Class BlockingOperatorNext


  • public final class BlockingOperatorNext
    extends java.lang.Object
    Returns an Iterable that blocks until the Observable emits another item, then returns that item.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.lang.Iterable<T> next​(Observable<? extends T> items)
      Returns an Iterable that blocks until the Observable emits another item, then returns that item.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BlockingOperatorNext

        private BlockingOperatorNext()
    • Method Detail

      • next

        public static <T> java.lang.Iterable<T> next​(Observable<? extends T> items)
        Returns an Iterable that blocks until the Observable emits another item, then returns that item.
        Type Parameters:
        T - the value type
        Parameters:
        items - the Observable to observe
        Returns:
        an Iterable that behaves like a blocking version of items