Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bloomen committed Apr 20, 2018
1 parent 82c18ca commit 58b6d41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transwarp.h
Expand Up @@ -1726,7 +1726,7 @@ class value_task : public transwarp::task<ResultType> {
future_ = transwarp::detail::make_future_with_value<result_type>(value);
};

// Assigns an exception to this value task
// Assigns an exception to this task
void set_exception(std::exception_ptr exception) override {
future_ = transwarp::detail::make_future_with_exception<result_type>(exception);
}
Expand Down Expand Up @@ -1761,7 +1761,7 @@ class value_task : public transwarp::task<ResultType> {
// No-op because a value task never runs and doesn't have parents
void cancel_all(bool) noexcept override {}

// Returns an empty graph because a value doesn't have parents
// Returns an empty graph because a value task doesn't have parents
std::vector<transwarp::edge> get_graph() const override {
return {};
}
Expand Down

0 comments on commit 58b6d41

Please sign in to comment.