java.lang.Object
org.bsc.async.AsyncGenerator.Data<E>
- Type Parameters:
E
- the type of the data element
- Enclosing interface:
- AsyncGenerator<E>
Represents a data element in the AsyncGenerator.
-
Constructor Summary
ConstructorsConstructorDescriptionData
(CompletableFuture<E> data, AsyncGenerator.Embed<E> embed, Object resultValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> AsyncGenerator.Data<E>
composeWith
(AsyncGenerator<E> generator, AsyncGenerator.EmbedCompletionHandler onCompletion) static <E> AsyncGenerator.Data<E>
done()
static <E> AsyncGenerator.Data<E>
static <E> AsyncGenerator.Data<E>
boolean
isDone()
static <E> AsyncGenerator.Data<E>
of
(E data) static <E> AsyncGenerator.Data<E>
of
(CompletableFuture<E> data)
-
Constructor Details
-
Data
-
-
Method Details
-
isDone
public boolean isDone() -
of
-
of
-
composeWith
public static <E> AsyncGenerator.Data<E> composeWith(AsyncGenerator<E> generator, AsyncGenerator.EmbedCompletionHandler onCompletion) -
done
-
done
-
error
-