Make sure SemiFuture can't be used as a inline task
Summary: Before this change one could write: SemiFuture<void> f() { co_await f1(); co_await f2(); } where SemiFuture coroutine would have semantics of an InlineTask (f1 called inline, f2 would be called on the executor which completes f1). This doesn't match the semantics of SemiFuture with deferred work (both f1() and f2() called on the executor that was passed to SemiFuture's via). Drop support for SemiFuture coroutines, because that isn't used anywhere except for toSemiFuture function. Reviewed By: lewissbaker Differential Revision: D13501140 fbshipit-source-id: d77f491821e6a77cef0c92d83839bff538552b32
Showing
Please register or sign in to comment