3 ms·
That's partially not true. You can use a non-async form in the trait definition to require the Send bound and then the trait impls can use the async form. See h
by ahahahahah 2y ago
That's partially not true. You can use a non-async form in the trait definition to require the Send bound and then the trait impls can use the async form. See https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=d55f089dc3de8df08cf0fe5b2c8d0e2f https://play.rust-lang.org/?version=nightly&mode=debug&editi...
- Dagonfly 2y agoFair point. Though, the code in question was a trait definition.