Add a peer Writable to the list of peers to which data will be written.
When writable.write is called on this FastestWritable object, the data is written to every peer. FastestWritable drains when at least one of its peers drains. When writable.write is called again, writable.end is called on any peer which hasn't drained from the previous writable.write call.
If this FastestWritable object has no peer Writables then it drains immediately.
A FastestWritable object emits a waiting event when it's waiting for any of its peers to drain.
When a peer drains, the FastestWritable object will emit a ready event. If there are no listeners for the ready event then it will emit a drain event.
Parameters:
{Function} stop_waiting Call this function to force the FastestWritable object to drain without waiting for any of its peers to drain. You could use this to implement a timeout, for example. It's safe to call stop_waiting more than once or even after a peer has drained of its own accord.
A FastestWritable object emits a ready event when one of its peers drains. It gives you the ability to control when the FastestWritable object emits drain.
Parameters:
{Integer} num_waiting Number of peers which still haven't drained for the latest data written to the FastestWritable object.
{Integer} total Number of peers which received the latest data written to the FastestWritable object.
{Function} drain Call this function to let the FastestWritble object drain without waiting for any more of its peers to drain. It's safe to call drain more than once.
A FastestWritable object emits a laggard event when one of its peers can't keep up, if emit_laggard was passed to the constructor. Note a laggard event is also emitted on the peer.
Parameters:
{stream.Writable} peer Peer Writable which can't keep up.