Open your-sudden-death opened 8 months ago
One more data point for rationale: rust-analyzer would generate async fn
implementation methods with #[trait_variant::only_send]
, but -> impl Future<Output = i32> + Send
methods with manually specified RPITIT.
Hey everyone,
it would be great if we could have a shorthand for making a trait
Send
only, like this:desugaring to
(no second variant)
The rationale behind it being that with the mostly Multithreaded Executors that are used widely right now (like tokio), this will probably be the default case once AFIT is becoming stable on 28th.