Class OfIterator<T>

java.lang.Object
io.activej.reactor.AbstractReactive
io.activej.reactor.ImplicitlyReactive
io.activej.async.process.AbstractAsyncCloseable
io.activej.csp.supplier.AbstractChannelSupplier<T>
io.activej.csp.supplier.impl.OfIterator<T>
All Implemented Interfaces:
io.activej.async.process.AsyncCloseable, ChannelSupplier<T>, io.activej.reactor.Reactive

public final class OfIterator<T> extends AbstractChannelSupplier<T>
  • Field Details

    • iterator

      public final Iterator<? extends T> iterator
    • ownership

      public final boolean ownership
  • Constructor Details

    • OfIterator

      public OfIterator(Iterator<? extends T> iterator, boolean ownership)
  • Method Details

    • doGet

      protected io.activej.promise.Promise<T> doGet()
      Specified by:
      doGet in class AbstractChannelSupplier<T>
    • onCleanup

      protected void onCleanup()
      Overrides:
      onCleanup in class io.activej.async.process.AbstractAsyncCloseable