let
is_idle_worker worker state =
List
.exists (
fun
worker'
->
worker == worker') state.idle_workers