Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Condition->trySucceed and Condition->tryFail (#185)
Summary: It would allow for use cases like this: ``` async function outer(): Awaitable<void> { await wait_for_notification_async( async $notifyee ==> { concurrent { await async { await gen_usleep(100); $notifyee->trySucceed("fast condition"); } await async { await gen_usleep(10000000000); $notifyee->trySucceed("slow condition"); } } } ); } ``` Pull Request resolved: #185 Reviewed By: fredemmott Differential Revision: D34903436 Pulled By: Atry fbshipit-source-id: fbe39b59cccc2dcdbdca0642a5b790dc47e4cf3f
- Loading branch information