The new runtime also allows you to use mature sync libraries like @dieselframework without fear! No need to manage a secondary threadpool for blocking tasks!
On top of that, the new runtime is also much better at scaling down, effectively becoming single-threaded if possible.
-
-
Prikaži ovu nit
-
So, how about speed? The new runtime is faster over 1.3.0, especially scaling much better. How do you use it? Just try out our current PR branch, instructions are in the blog post. async-std is fully compatible to futures-rs, for your ease!pic.twitter.com/6mgInNuK10
Prikaži ovu nit
Kraj razgovora
Novi razgovor -
-
-
Wow, this is awesome. Thanks.
-
It's a pleasure!
Kraj razgovora
Novi razgovor -
-
-
"The runtime measures the time it takes to perform the blocking operation and if it takes a while, a new thread is automatically spawned" ... would love a more detailed blog post explaining how this actually works
-
Coming up down the line. But essentially, its the `sysmon` from this: https://utcc.utoronto.ca/~cks/space/blog/programming/GoSchedulerAndSyscalls …
- Još 1 odgovor
Novi razgovor -
-
-
Does it actually make the problem described in “What Color Is Your Function” disappear?
I pretty much don’t know Rust, but I see that you still have to use an async function. -
It makes the problem of calling sync functions within async functions. async function in Rust still have specific meaning (they are used to generate Futures, which you can execute). But that problem is rather inherent, but also not so painful.
- Još 1 odgovor
Novi razgovor -
-
-
Not gonna lie, this reads kinda like an April Fools Day post
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Interesting! Not just for blocking tasks, but also for potentially long running ones where it is hard to decide whether they are better offloaded to a thread pool or not
. Seems like I finally have a reason to give @asyncrs a try (instead of using Tokio as I am used to).Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.