flush

open suspend override fun flush(key: SessionKey? = null)

Waits for the writes buffered for key, or for every session when key is null, and passes the flush on to delegate, then throws if a write of key it waited on failed or key has a failure unreported. With a null key, it throws every unreported failure, on each call until the session whose write failed reports it on an append, flush or delete.