Andrei Nesterov

Results 105 comments of Andrei Nesterov

@lnicola Could you please show an example of using `Result` in a resource handler.

Could you please elaborate on how you see this working? Both methods definitely work with the same resource but responses are different, so should be handlers.

Perhaps for this case using http::Response would be more convenient. ```rust impl_web! { impl Object { #[get("/")] fn read(&self) -> Result

May relate to this [issue](https://github.com/carllerche/tower-web/issues/91).

The issue still appeears on `0.11.0` and current master branch (`d7f2a3b` commit).

Another example with LaTeX equations that breaks rendering: One equation works just fine: > $f(x)$ Two equations in a row do not work: > $f(x)$, $f(x)$ Result:

Hey @RossMeikleham , I'm not maintaining this project anymore. Feel free to fork the repo.

``` async-std v1.12.0 futures-concurrency v7.6.0 tokio v1.37.0 macOS Sonoma 14.4.1 ```

> You mentioned Tokio only uses a single core with this; how did you measure that? I've been able to see the slowdown, but I didn't yet look at core...

There is another interesting case resulting in a stalled execution. At least on my machine, I can constantly reproduce it when `n_tasks` is greater than `4`. ```rust #[derive(Debug, Clone)] struct...