Callback invoked when a batch stays open longer than warnAfter in debug mode. Defaults to print.
static void Function(String message) onWarning = print;