rayon-rs / rayon

Rayon: A data parallelism library for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error reporting in scoped tasks

jplatte opened this issue · comments

Hello, and thanks a lot for Rayon!

This issue is more like a question, but GitHub discussions aren't enabled here and I didn't want to use a synchronous communication medium.

I'm currently using scoped tasks (Scope::spawn) for the first time and am wondering if there are any established patterns for reporting errors that happen in those. I think I want to collect all the errors and print them after the scope ends. I guess is easy enough with an MPSC channel? That's what I will try first in any case. I'm just wondering: Are there any established error-handling patterns for scoped tasks? Is this discussed in the documentation somewhere and I just missed it?