default boolean sleepWhen(BooleanSupplier criteria){
  return sleepWhen(criteria.getAsBoolean());
}

default boolean sleepWhen ( BooleanSupplier criteria ) { return sleepWhen ( criteria . getAsBoolean ( ) ) ; }
attempt to sleep when the specified criteria is met .
