Better API for the writte buffer of streams.
Can now be disabled without flushing and then be flushed later.