A tiny ValueTask
extensions library.
// await WhenAll
var values = await AsynqTasks.WhenAll(valueTasks);
// WhenAll extension
var values = await valueTasks.WhenAll();
// await WhenAny
var values = await AsynqTasks.WhenAny(valueTasks);
// WhenAny extension
var values = await valueTasks.WhenAny();
// Fire and Forget
valueTask.FireAndForget();
// Fire and Forget with exception handling
valueTask.FireAndForget(MyCustomExceptionHandler);
// Convert to ValueTask
task.AsValueTask();