================
@@ -12,6 +12,13 @@ struct task {
     std::suspend_always yield_value(int) { return {}; }
     task get_return_object();
     void unhandled_exception();
+
+    struct Awaiter {
+      bool await_ready();
+      void await_suspend(auto);
+      int await_resume();
+    };
+    auto await_transform(const int& x) { return Awaiter{}; }
----------------
usx95 wrote:

Oh my bad. I thought this was targeting `co_await some_integer;`. Makes sense 
then.

https://github.com/llvm/llvm-project/pull/77454
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to