Package org.bsc.async

Class AsyncGenerator.WithResult<E>

Type Parameters:
E - the type of elements in the generator
All Implemented Interfaces:
Iterable<E>, AsyncGenerator<E>, AsyncGenerator.Cancellable<E>, AsyncGenerator.HasResultValue, AsyncGenerator.IsCancellable
Enclosing interface:
AsyncGenerator<E>

public static class AsyncGenerator.WithResult<E> extends AsyncGenerator.BaseCancellable<E> implements AsyncGenerator.HasResultValue
An asynchronous generator decorator that allows retrieving the result value of the asynchronous operation, if any.