The wait_timeout_with method allows you to wait on a CondVar with a particular timeout, but also to cancel waiting based on a closure you pass in.
It's not clear if this API is broadly useful enough to go in std, or whether this is its ideal form.
cc @sfackler
The
wait_timeout_withmethod allows you to wait on aCondVarwith a particular timeout, but also to cancel waiting based on a closure you pass in.It's not clear if this API is broadly useful enough to go in
std, or whether this is its ideal form.cc @sfackler