-
I tried this code:
```rust
use std::future::Future;
trait Foo {
fn foo(&self, s: S) -> impl Future + Send;
}
struct Bar;
impl Foo for Bar {
async fn foo(&self, s: S) -> S
…
-
https://github.com/async-email/async-smtp/commit/eed4f0bfcc12e5cb5672073fbd83d56f3b81eec5
So wrapping TcpStream with BufReader should work ?
Even if I wrap it to BufReader then it wants AsyncWri…
-
Not sure an issue is the right place for this, but I wanted to record some thoughts on the subject of ecosystems splits in the context of the async IO traits.
The primary driver in doing this work …
-
### Review Mojo's priorities
- [X] I have read the [roadmap and priorities](https://docs.modular.com/mojo/roadmap.html#overall-priorities) and I believe this request falls within the priorities.
…
-
### Code
```Rust
pub trait HasError {
type Error;
}
pub trait Foo: HasError {
// removing `async` emits E0275 instead of hanging until OOM
async fn foo() -> Result;
}
pub st…
-
I need to define different services to handle different tasks, such as:
```rust
#[tarpc::service]
pub trait UserService {
async fn login(name: String);
}
#[tarpc::service]
pub trait Order…
-
With the [stabilization of async fn in trait](https://github.com/rust-lang/rust/pull/115822) as of 1.75, I think it would be more ergonomic to have a single state to handle all events which implements…
-
Compiling using https://hub.docker.com/r/messense/cargo-zigbuild fails with
```
error[E0706]: functions in traits cannot be declared `async`
--> crates/middleware/src/logseq.rs:36:5
|
36 | …
-
### Implement async `Doublets` trait without dyn `Future` trait
`Pin` from [async_trait](https://github.com/dtolnay/async-trait) eats a lot of time, but it can be fixed
## How to be
As you know…
-
We just tried to make all the methods of our state machine async. For on transition we hit:
```
--> bazel-out/k8-fastbuild/bin/otiv3/pipeline_manager_process/state_machines/state_machine.rs:87:2…