FindMyFiles

FindMyFiles.Services

TaskExtensions Class

Extensions for safely launching fire-and-forget System.Threading.Tasks.Tasks (CLAUDE.md rule: never _ = SomeAsync()).

public static class TaskExtensions

Inheritance System.Object → TaskExtensions

Methods

TaskExtensions.Forget(this Task, string) Method

The only sanctioned way to fire-and-forget (CLAUDE.md rule): unexpected exceptions land in the log and the notification bar instead of being silently dropped by an abandoned Task.

public static void Forget(this System.Threading.Tasks.Task task, string area);

Parameters

task System.Threading.Tasks.Task

The task to observe to completion.

area System.String

Subsystem tag for the log/notification if it faults.