Allow awaiting on a folly::Optional that returns a move-only type
Summary: await_resume is only called once, so this allows it to move the value out. At the same time remove a redundant clear (but keep the existing requirement that the promise type is an OptionalPromise), and clean up the tests. Also add a test to make sure the coroutine is cleaned up Reviewed By: ericniebler Differential Revision: D5834861 fbshipit-source-id: 7ad487e818969cdf6fe27c9e82931aa247daf4e4
Showing
Please register or sign in to comment