WIP WaitAny implementation.