Photomechanics API
TaskExtensions Class Reference

Task custom extensions. More...

Static Public Member Functions

static void Forget (this Task task)
 Forget the given task. More...
 
static async Task< TResult > WithTimeout< TResult > (Func< Task< TResult > > taskProvider, TimeSpan timeout)
 Run provided asynchronous action with timeout.
 
static async Task WithTimeout (Func< Task > taskProvider, TimeSpan timeout)
 Run provided asynchronous action with timeout.
 

Detailed Description

Task custom extensions.

Member Function Documentation

◆ Forget()

static void TaskExtensions.Forget ( this Task  task)
static

Forget the given task.

Useful to get rid from async-related warnings.