Current icon indicating copy to clipboard operation
Current copied to clipboard

WaitableAtomic's `Wait` and `WaitFor` return values unification.

Open dkorolev opened this issue 6 years ago • 0 comments

Proposal:

  • WaitFor returns true or false, depending on whether the wait has succeeded or no.
  • Wait always returns true.
  • Also introduce WaitAndReturn<T>, which returns T from the user function, and WaitForAndReturn<T>, which returns Optional<T> from the user function.

dkorolev avatar Dec 23 '19 19:12 dkorolev