Commit c501bc43 authored by Lee Howes's avatar Lee Howes Committed by Facebook Github Bot

Remove inaccurate comments

Summary: Trivial change to remove comments that were initially accurate but inaccurate once we decided to DCHECK on the executor instead.

Reviewed By: yfeldblum

Differential Revision: D15148289

fbshipit-source-id: 5d0495f4b36db3a0c8610592bc759e121ed1dcff
parent 87f1a403
......@@ -1163,8 +1163,6 @@ template <class T>
template <typename F>
Future<typename futures::detail::tryExecutorCallableResult<T, F>::value_type>
Future<T>::thenExTry(F&& func) && {
// As Futures may carry null executors, ensure that what we pass into the
// continuation is always usable by replacing with inline if necessary.
auto ka = getKeepAliveToken(this->getExecutor());
// Enforce that executor cannot be null
DCHECK(ka);
......@@ -1192,8 +1190,6 @@ template <class T>
template <typename F>
Future<typename futures::detail::valueExecutorCallableResult<T, F>::value_type>
Future<T>::thenExValue(F&& func) && {
// As Futures may carry null executors, ensure that what we pass into the
// continuation is always usable by replacing with inline if necessary.
auto ka = getKeepAliveToken(this->getExecutor());
// Enforce that executor cannot be null
DCHECK(ka);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment