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

More the latter. The lock guard is not `Send`, so holding it across the await point makes the `impl Future` returned by the async function also not `Send`. Therefore it can't be passed to a scheduler which does work stealing, since that scheduler is typed to require futures to be `Send`.


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

Search: