6
submitted 1 year ago by xhci@lemmy.world to c/rustlang@lemmyrs.org

I’m just starting to learn Rust, and was wondering if there is a good way to do coroutines/channels. I’ve grown fond of languages based around CSP, but am not sure that maps well to idiomatic Rust.

Thanks in advance!

you are viewing a single comment's thread
view the rest of the comments
[-] netwren@lemmy.world 3 points 1 year ago

Super interested to see if this is true as well. AFAIK Rust focuses on threading and async/await with Tokio being the main focus.

I believe there is some support of green threads with Tokio configuration but I'm not 100% sure and am just writing off the top of my head because nobody has responded yet.

this post was submitted on 06 Jul 2023
6 points (100.0% liked)

Rust Lang

58 readers
1 users here now

Rules [Developing]

Observe our code of conduct

Constructive criticism only

No endless relitigation

No low-effort content

No memes or image macros

No NSFW Content

founded 2 years ago
MODERATORS