I'm really wondering about good patterns for error handling between threads. I feel that Erlang's OTP library / golang's goroutines might have some good patterns, but I don't know enough about them. I'm guessing there's going to be multiple different patterns for it right?
-
-
Sounds like a lower level way of doing exactly what a Future does?
-
Yeah thinking about it you're probably right! I guess futures even give the flexibility of intercepting errors & retrying / reporting through side channels, if desired. I'm guessing any fancy OTP stuff would be similar. Heh, nice.
- 2 more replies
New conversation -
-
-
Selecting in a channel (especially oneshot::channels, where the receiver is simply a future) is the way to go. Depending on your situation, having one channel for a Result<> or different ones for both cases is possible.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.