Skip to content

Commit

Permalink
Added TODOs for issue #14
Browse files Browse the repository at this point in the history
  • Loading branch information
NatalieWolfe committed Feb 22, 2021
1 parent 5e514d9 commit c929611
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lw/co/future.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ Future<T> make_resolved_future(std::exception_ptr err) {
*/
template <typename... Args>
co::Future<std::tuple<Args...>> all(co::Future<Args>... futures) {
// TODO(#14): Implement this method for `co::Future<void>`.
co_return std::make_tuple((co_await futures)...);
}

Expand Down
2 changes: 1 addition & 1 deletion lw/co/future_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ TEST(AwaitAll, AllResolve) {
destroy_all_schedulers();
}

// TODO(alaina): Implement support for Future<void> in co::all.
// TODO(#14): Implement support for Future<void> in co::all.
// TEST(AwaitAll, AllVoid) {
// int counter = 0;
// auto coro0 = [&]() -> Future<void> {
Expand Down

0 comments on commit c929611

Please sign in to comment.