Make BackgroundActionQueue catch exceptions #197
Labels
enhancement
good-first-issue
Great issue to start out with if you're new to the code base and would like to help.
hacktoberfest
Good issues to contribute as part of Hacktoberfest
🆙 Improvement proposal
At present, the BackgroundActionQueue will break if any actions executed throw. While the user can catch and handle their own exception, we should consider doing this for them, and offering various methods of getting at those errors (like the Result monad).
Context
Exceptions and threads are a real pain. Best to make that interface as easy as possible and prevent things from blowing up in a user's face.
EDIT: ManualActionQueue has the same problem. Also worth noting is that calls to RunAndAwait will never return if the action throws, which is even worse than the queue breaking.
The text was updated successfully, but these errors were encountered: