Skip to content

Make BackgroundActionQueue catch exceptions #197

Open
@paulcscharf

Description

@paulcscharf

🆙 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood-first-issueGreat issue to start out with if you're new to the code base and would like to help.hacktoberfestGood issues to contribute as part of Hacktoberfest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions