/** * Creates a lazy Flow from the {@link Iterator}. The Flow will be threadsafe as long as the underlying iterable * object is not modified while the Flow is evaluating. In other words, not extremely threadsafe. * * @since 5.3 */ public static <T> Flow<T> flow(Iterator<T> iterator) { return lazy(new LazyIterator<T>(iterator)); }
/** * Creates a lazy Flow from the {@link Iterator}. The Flow will be threadsafe as long as the underlying iterable * object is not modified while the Flow is evaluating. In other words, not extremely threadsafe. * * @since 5.3 */ public static <T> Flow<T> flow(Iterator<T> iterator) { return lazy(new LazyIterator<T>(iterator)); }