Current
Current copied to clipboard
WaitableAtomic's `Wait` and `WaitFor` return values unification.
Proposal:
-
WaitForreturns true or false, depending on whether the wait has succeeded or no. -
Waitalways returnstrue. - Also introduce
WaitAndReturn<T>, which returnsTfrom the user function, andWaitForAndReturn<T>, which returnsOptional<T>from the user function.