write_fn(data, callback) - an asnynchronous function that will be wrapped into a through stream
data is the queued stream chunk.
There are three ways to invoke callback:
callback(null, transformedData) - emit data
callback(error) - emit error
callback() - drop data (don't emit to next stream)
end_fn() - a function that will be invoked when no more data will be provided.
options - an object containing options
options.concurrency - concurrency argument to async.queue. Default: 1
options.error_event - event name used to emit the error from callback via the asynchronous function. Default: 'failure'
options.stop_on_error - boolean value for asyncqueue to stop queuing any more stream chunks if callback via the asynchronous function has emitted an error. Default: false
Note: Any tasks already executed will be able to complete.