Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not familiar with tokio, but I am familiar with folly coro in C++ which is similiar-ish. You cannot co_await a folly::coro::Task by reference, you must move it. It seems like that prevents this bug. So maybe select! is the low level API and a higher level (i.e. safer) abstraction can be built on top?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: