async-trait icon indicating copy to clipboard operation
async-trait copied to clipboard

Add per-method #[async_trait(?Send)]

Open RoGryza opened this issue 3 years ago • 0 comments

Fixes #131

Allow adding #[async_trait(?Send)] to specific methods instead of the whole trait for cases where only some methods require Send bounds.

I could add #[async_trait(Send)] as well for convenience when most methods on a trait should be ?Send but a few shouldn't, depending on your opnion on that.

RoGryza avatar Mar 05 '22 17:03 RoGryza