pub fn drain(wait: bool) -> i32
ljos hook --drain: apply every queued job. With wait, wait for a drainer that runs and return once the spool is empty; without, leave the work to that drainer.
ljos hook --drain
wait