Deprecate executor-taking forms of Future::then
Summary: Deprecate Future::then(executor, callback) pending removal. This form of Future::then is ambiguous, and does not yet implement the stronger typing of thenValue and thenTry. It is also tempting to use instead of via, where it is not obvious that it has the behaviour of wrapping a via call in a push and pop of the current executor: .pushCurrentExecutor().via(executor).then(callback).popCurrentExecutor(). With the addition of inline continuations, we can instead make the nesting explicit at low cost by making it an inline continuation that launches an asynchronous task on the passed executor. Reviewed By: yfeldblum Differential Revision: D16282826 fbshipit-source-id: a94c994cf02f43f7a2bd857237885b25591fa9aa
Showing
Please register or sign in to comment