Write some data to the stream. The data is put on an internal write queue, and the write actually happens
asynchronously. To avoid running out of memory by putting too much on the write queue,
check the {@link #writeQueueFull} method before writing. This is done automatically if using a {@link Pump}.
@param data the data to write
@return a future completed with the result
Write some data to the stream. The data is put on an internal write queue, and the write actually happens asynchronously. To avoid running out of memory by putting too much on the write queue, check the {@link #writeQueueFull} method before writing. This is done automatically if using a {@link Pump}.
@param data the data to write @return a future completed with the result