Class AsyncIterator<T>

    • Field Detail

      • thread

        protected org.deeplearning4j.core.parallelism.AsyncIterator.ReaderThread<T> thread
      • terminator

        protected T terminator
      • nextElement

        protected T nextElement
    • Constructor Detail

      • AsyncIterator

        public AsyncIterator​(@NonNull
                             @NonNull Iterator<T> iterator,
                             int bufferSize)
      • AsyncIterator

        public AsyncIterator​(@NonNull
                             @NonNull Iterator<T> iterator)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface Iterator<T>
      • remove

        public void remove()
        Specified by:
        remove in interface Iterator<T>
      • shutdown

        public void shutdown()