pub fn enqueue_batch_task(task: Box<dyn FnOnce() + Send + Sync>)
Enqueues a notification task to be run when the current batch flushes.