Added `SemiFuture::delayed`
Summary: Added `FutureBase::delayedImplementation`. Kept the existing semantics of `Future::delayed` and `Future::delayedUnsafe`. `SemiFuture::delayed` uses the inline executor which means we could execute our trivial lambda on the `Timekeeper` thread. However we ultimately return a `SemiFuture`, so we're not necessarily on the hook to execute an arbitrarily complex continuation. NOTE: This is still possible if the user explicitly specifies `.via(inline_executor)`. Perhaps we should consider disallowing, or maybe linting for this. Reviewed By: yfeldblum Differential Revision: D8372515 fbshipit-source-id: e660dbf2a2bb084e11c5e57d1badacf09425f939
Showing
Please register or sign in to comment