async fn lock_taken_within( free: impl Fn() -> bool, wait: Duration, poll: Duration, ) -> bool
Whether free answers true within wait, asking every poll.
free
wait
poll