Skip to content

Support Aggregate Exceptions #56

@bobbyg603

Description

@bobbyg603

The user shouldn't have to unwind aggregate Exceptions themselves, we should just support this.

https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/how-to-handle-exceptions-in-parallel-loops

TaskScheduler.UnobservedTaskException += async (sender, e) =>
{
    foreach(var ex in e.Exception.Flatten().InnerExceptions)
    {
        await CrashReporter.Post(ex);
    }
};

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions