onEmpty() onEmpty(callable $onEmpty = null) Sets a callback that is called when the write buffer becomes empty. Parameters callable $onEmpty