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

An async function call returns a future which is an object holding the state of the async computation. Multithreaded runtimes like tokio require this future to be `Send`, which means it can be moved from one thread to another. The future generated by the compiler is not Send if there is a local variable crossing an await boundary that is not `Send`.


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

Search: