File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ non_fbcode_target(
46
46
"//xplat/folly:expected" ,
47
47
"//xplat/folly:operation_cancelled" ,
48
48
"//xplat/folly:portability_gtest_prod" ,
49
+ "//xplat/folly/coro:coroutine" ,
49
50
"//xplat/folly/lang:align" ,
50
51
"//xplat/folly/lang:rvalue_reference_wrapper" ,
51
52
],
@@ -63,6 +64,7 @@ fbcode_target(
63
64
"//folly:exception_wrapper" ,
64
65
"//folly:expected" ,
65
66
"//folly:operation_cancelled" ,
67
+ "//folly/coro:coroutine" ,
66
68
"//folly/lang:align" ,
67
69
"//folly/lang:rvalue_reference_wrapper" ,
68
70
"//folly/portability:gtest_prod" ,
Original file line number Diff line number Diff line change 19
19
#include < folly/ExceptionWrapper.h>
20
20
#include < folly/Expected.h>
21
21
#include < folly/OperationCancelled.h>
22
+ #include < folly/coro/Coroutine.h>
22
23
#include < folly/lang/Align.h> // for `hardware_constructive_interference_size`
23
24
#include < folly/lang/RValueReferenceWrapper.h>
24
25
#include < folly/portability/GTestProd.h>
@@ -739,10 +740,10 @@ struct result_promise_base {
739
740
void operator =(result_promise_base&&) = delete ;
740
741
~result_promise_base () = default ;
741
742
742
- FOLLY_NODISCARD std ::suspend_never initial_suspend () const noexcept {
743
+ FOLLY_NODISCARD folly::coro ::suspend_never initial_suspend () const noexcept {
743
744
return {};
744
745
}
745
- FOLLY_NODISCARD std ::suspend_never final_suspend () const noexcept {
746
+ FOLLY_NODISCARD folly::coro ::suspend_never final_suspend () const noexcept {
746
747
return {};
747
748
}
748
749
void unhandled_exception () noexcept {
@@ -778,7 +779,7 @@ struct result_promise<T, typename std::enable_if<std::is_void_v<T>>::type>
778
779
};
779
780
780
781
template <typename T>
781
- using result_promise_handle = std ::coroutine_handle<result_promise<T>>;
782
+ using result_promise_handle = folly::coro ::coroutine_handle<result_promise<T>>;
782
783
783
784
// This is separate to let `result_generator` reuse the awaitables below.
784
785
struct result_await_suspender {
You can’t perform that action at this time.
0 commit comments