A class providing access to an API response as an asynchronous stream of chunks of type [T], where each chunk can be individually processed as soon as it arrives instead of waiting on the full response..
public interface AsyncStreamResponse<T>A class providing access to an API response as an asynchronous stream of chunks of type [T], where each chunk can be individually processed as soon as it arrives instead of waiting on the full response.
Registers [handler] to be called for events of this stream.
Registers [handler] to be called for events of this stream.
Returns a future that completes when a stream is fully consumed, errors, or gets closed early..
Closes this resource, relinquishing any underlying resources.
Called whenever a chunk is received..
Called when a stream is fully consumed, errors, or gets closed early.
Registers [handler] to be called for events of this stream.
Registers [handler] to be called for events of this stream.
Returns a future that completes when a stream is fully consumed, errors, or gets closed early..
Closes this resource, relinquishing any underlying resources.