QueueStrategy.Rd
1
Other queue_strategies: byte_size_strategy, no_backpressure_strategy, object_length_strategy
byte_size_strategy
no_backpressure_strategy
object_length_strategy
highwater_mark
A number representing the queue size at which a stream will stop attempting to receive more chunks
QueueStrategy$new()
QueueStrategy$size()
new()
Create a new queue strategy
QueueStrategy$new(highwater_mark, size_algorithm)
number denoting when a stream should stop asking for more data
size_algorithm
function that is used to measure the size of the stream queue
size()
A function that is applied to a chunk in order to determine its size.
QueueStrategy$size(chunk)
chunk
a data chunk
numeric vector