Uses of Interface
org.bsc.async.AsyncGenerator
Packages that use AsyncGenerator
-
Uses of AsyncGenerator in org.bsc.async
Classes in org.bsc.async that implement AsyncGeneratorModifier and TypeClassDescriptionstatic class
An asynchronous generator decorator that allows to generators composition embedding other generators.static class
An asynchronous generator decorator that allows retrieving the result value of the asynchronous operation, if any.static class
Inner class to generate asynchronous elements from the queue.Methods in org.bsc.async that return AsyncGeneratorModifier and TypeMethodDescriptionstatic <E,
U> AsyncGenerator<U> AsyncGenerator.collect
(Collection<E> collection, BiConsumer<E, Consumer<CompletableFuture<U>>> consumer) Collects asynchronous elements from a collection.static <E,
U> AsyncGenerator<U> AsyncGenerator.collect
(Iterator<E> iterator, BiConsumer<E, Consumer<CompletableFuture<U>>> consumer) Collects asynchronous elements from an iterator.AsyncGenerator.WithResult.delegate()
static <E> AsyncGenerator<E>
AsyncGenerator.empty()
Returns an empty AsyncGenerator.default AsyncGenerator<E>
Filters the elements of this generator based on the given predicate.default <U> AsyncGenerator<U>
AsyncGeneratorOperators.flatMap
(Function<E, CompletableFuture<U>> mapFunction) Maps the elements of this generator to a new asynchronous generator, and flattens the resulting nested generators.static <T,
P extends Flow.Publisher<T>>
AsyncGenerator<T>FlowGenerator.fromPublisher
(P publisher) Creates anAsyncGenerator
from aFlow.Publisher
.static <E,
U> AsyncGenerator<U> AsyncGenerator.map
(Collection<E> collection, Function<E, CompletableFuture<U>> mapFunction) create a generator, mapping each element to an asynchronous counterpart.static <E,
U> AsyncGenerator<U> AsyncGenerator.map
(Iterator<E> iterator, Function<E, CompletableFuture<U>> mapFunction) create a generator, mapping each element to an asynchronous counterpart.default <U> AsyncGenerator<U>
Maps the elements of this generator to a new asynchronous generator.static <E,
Q extends BlockingQueue<AsyncGenerator.Data<E>>>
AsyncGenerator<E>Deprecated.use of(Q, Consumer, Executor)static <E,
Q extends BlockingQueue<AsyncGenerator.Data<E>>>
AsyncGenerator<E>Creates an AsyncGenerator from the provided blocking queue and consumer.static <E,
Q extends BlockingQueue<AsyncGenerator.Data<E>>>
AsyncGenerator<E>Creates an AsyncGenerator from the provided queue, executor, and consumer.Methods in org.bsc.async with parameters of type AsyncGeneratorModifier and TypeMethodDescriptionstatic <E> AsyncGenerator.Data<E>
AsyncGenerator.Data.composeWith
(AsyncGenerator<E> generator, AsyncGenerator.EmbedCompletionHandler onCompletion) static <T> Flow.Publisher<T>
FlowGenerator.toPublisher
(AsyncGenerator<T> generator) Converts anAsyncGenerator
into aFlow.Publisher
.Constructors in org.bsc.async with parameters of type AsyncGeneratorModifierConstructorDescriptionEmbed
(AsyncGenerator<E> generator, AsyncGenerator.EmbedCompletionHandler onCompletion) WithEmbed
(AsyncGenerator<E> delegate) WithEmbed
(AsyncGenerator<E> delegate, AsyncGenerator.EmbedCompletionHandler onGeneratorDoneWithResult) WithResult
(AsyncGenerator<E> delegate) -
Uses of AsyncGenerator in org.bsc.async.internal.reactive
Classes in org.bsc.async.internal.reactive that implement AsyncGeneratorModifier and TypeClassDescriptionclass
Represents a subscriber for generating asynchronous data streams.Constructors in org.bsc.async.internal.reactive with parameters of type AsyncGeneratorModifierConstructorDescriptionGeneratorPublisher
(AsyncGenerator<? extends T> delegate) Constructs a newGeneratorPublisher
with the specified async generator.