Hacker News
Rust does not have to be this hard. Most of the pain here come ...
Most of the pain here come from the unholy trifactor: combining async, lifetimes and dynamic dispatch with trait object closures; which is indeed very awkward in practice · Async support is incredibly half-baked. It was released as an MVP, but that MVP has not improved notably in almost three years
Servo
tokio::sync::mpsc - Rust
A multi-producer, single-consumer queue for sending values between asynchronous tasks.
Stack Overflow
rust - How can I close a Tokio mpsc channel on the sender side ...
I am building a simple crawler, the idea was to spawn a new task every time a new URL is found and return all the links found in the page via mspc channel, but I ended up in a standstill. The core ...
Crates
crates.io: Rust Package Registry
For full functionality of this site it is necessary to enable JavaScript
Rust-lang
Sharing / Sending Data between Tasks within an Axum Framework - ...
May 8, 2023 - Hi, I am trying to create a micro-service in rust. Currently, I am using Axum. This micro-service actually only take's 1 type of request (a Post request with JSON). However, this service is extremely IO intensive, as in I am web-scraping from 1 particular source which would mean I'd have to ...
Oida
Tokio: Channels
This is a long section. Here are some anchors to jump to the respective part:
Rust-lang
How to connect a MPSC tokio channel with a fallible stream consumer?
July 10, 2021 - I have a bi-directional stream gRPC endpoint (i.e. GCP pub/sub streaming_pull). The inbound stream is a stream of pub/sub messages and the outbound stream is a stream of ack ids. In my current implementation ack ids are sent to a MPSC tokio channel and I wrap the receiver into a ReceiverStream ...
Docs
Receiver in tokio::sync::mpsc - Rust
Receives values from the associated Sender · Instances are created by the channel function
Reddit
r/rust on Reddit: New Tokio blog post: What's new in axum 0.6.0-rc.1
August 23, 2022 - 305 votes, 38 comments. 319K subscribers in the rust community. A place for all things related to the Rust programming language—an open-source…
Reddit
r/rust on Reddit: New Tokio blog post: Announcing axum 0.7
November 27, 2023 - 459 votes, 104 comments. 322K subscribers in the rust community. A place for all things related to the Rust programming language—an open-source…