Commit 8f7f677d authored by Lara Lu's avatar Lara Lu Committed by Facebook Github Bot

fix coro example in readme

Summary: was reading coro example and i think a line is missing

Reviewed By: andriigrynenko

Differential Revision: D13788989

fbshipit-source-id: ceb024a36ddd89369ee25f6632fce8d339c489cb
parent 8946c3b5
...@@ -36,6 +36,7 @@ folly::SemiFuture<int> task42() { ...@@ -36,6 +36,7 @@ folly::SemiFuture<int> task42() {
folly::SemiFuture<int> taskSlow43() { folly::SemiFuture<int> taskSlow43() {
return folly::futures::sleep(std::chrono::seconds{1}) return folly::futures::sleep(std::chrono::seconds{1})
.semi() .semi()
.deferValue([](auto) { return task42(); })
.deferValue([](auto value) { return value + 1; }); .deferValue([](auto value) { return value + 1; });
} }
......
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