RFoe / coasync

Asynchronous network library that supports coroutines in C++20
https://github.com/RFoe/coasync
MIT License
51 stars 5 forks source link

example/co_bind.cc co_bind(ctx, sleep, 2) 入参不匹配 #12

Closed navegador5 closed 2 months ago

navegador5 commented 2 months ago

co_bind.cc: In function ‘coasync::awaitable test()’: co_bind.cc:22:68: error: no matching function for call to ‘co_bind(coasync::execution_context&, , int)’ 22 | co_await when_any(co_sleep(1), co_sleep(3), co_bind(ctx, sleep, 2), co_bind(ctx, sleep, 4));