It could be useful to allow gen_batch_server implementations to hook into the part of the processing cycle where a batch has been processed but the mail box is now empty. The callback could be named on_empty or on_idle or something similar to that. This callback could provide a handy point to perform non-essential work, such as metric emission, full-sweep garbage_collection etc.
It could be useful to allow
gen_batch_serverimplementations to hook into the part of the processing cycle where a batch has been processed but the mail box is now empty. The callback could be namedon_emptyoron_idleor something similar to that. This callback could provide a handy point to perform non-essential work, such as metric emission, full-sweep garbage_collection etc.