Open dkorolev opened 4 years ago
Proposal:
WaitFor
Wait
true
WaitAndReturn<T>
T
WaitForAndReturn<T>
Optional<T>
Proposal:
WaitFor
returns true or false, depending on whether the wait has succeeded or no.Wait
always returnstrue
.WaitAndReturn<T>
, which returnsT
from the user function, andWaitForAndReturn<T>
, which returnsOptional<T>
from the user function.