Commit 41bb0dc1 authored by Andrii Grynenko's avatar Andrii Grynenko Committed by Facebook Github Bot

Mark toSemiFuture as inline

Summary: Non-template functions in header files have to be marked as inline to avoid linker errors.

Reviewed By: yfeldblum

Differential Revision: D8983661

fbshipit-source-id: 8f003e9f4e2d40cb6122da8e9e0adacab00ed0fa
parent 2a7d0faa
...@@ -117,7 +117,7 @@ class Future { ...@@ -117,7 +117,7 @@ class Future {
}; };
namespace detail { namespace detail {
SemiFuture<Unit> toSemiFuture(Future<void> future) { inline SemiFuture<Unit> toSemiFuture(Future<void> future) {
co_await future; co_await future;
co_return folly::unit; co_return folly::unit;
} }
......
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