Skip to content

Commit

Permalink
Make ExtendedCoroutineHandle truthy when it holds a truthy basic hand…
Browse files Browse the repository at this point in the history
…le for a non-extended promise

Reviewed By: simpkins

Differential Revision: D32838375

fbshipit-source-id: d8c350715d3a5fc7ebaa69f723cb6626bdc80031
  • Loading branch information
iahs authored and facebook-github-bot committed Dec 3, 2021
1 parent 56291f4 commit fd808fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion folly/experimental/coro/Coroutine.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class ExtendedCoroutineHandle {
return {basic_, nullptr};
}

explicit operator bool() const noexcept { return !!extended_; }
explicit operator bool() const noexcept { return !!basic_; }

private:
template <typename Promise>
Expand Down

0 comments on commit fd808fc

Please sign in to comment.