All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sproutigy.commons.async.collections.BlockingIterable Maven / Gradle / Ivy

There is a newer version: 2.0
Show newest version
package com.sproutigy.commons.async.collections;

import org.reactivestreams.Publisher;

import java.util.Iterator;

/**
 * @author LukeAheadNET
 */
public class BlockingIterable implements Iterable {
    private Publisher publisher;

    public BlockingIterable(Publisher publisher) {
        this.publisher = publisher;
    }

    @Override
    public Iterator iterator() {
        return new BlockingIterator<>(publisher);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy