You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed in the readme that GATs are a reason for depending on nightly Rust instead of stable. Now that GATs have just landed in stable, is it possible for monoio to depend on stable?
The text was updated successfully, but these errors were encountered:
Yes it is. It would become simpler to write trait and impl, but it may causes break changes. Also I don't know if there would be overhead when replace code like this:
type RetFut = impl Future<..>;
fn demo(&self, num: i32) -> Self::RetFut {...}
fn demo2(&self, num: i32) -> Self::RetFut {
let num = nun + 1;
self.demo(num)
}
to
async fn demo(&self, num: i32) -> xxx {...}
async fn demo2(&self, num: i32) -> xxx {
let num = nun + 1;
self.demo(num).await
}
If no overhead, I think it will be better to use the new style.
Thanks for making this library!
I noticed in the readme that GATs are a reason for depending on nightly Rust instead of stable. Now that GATs have just landed in stable, is it possible for monoio to depend on stable?
The text was updated successfully, but these errors were encountered: