Table of Contents

Class TaskExtensions

Namespace
nanoFramework.Tools.Debugger.Extensions
Assembly
nanoFramework.Tools.DebugLibrary.Net.dll
public static class TaskExtensions
Inheritance
TaskExtensions
Inherited Members

Methods

CancelAfterAsync<T>(Task<T>, int, CancellationTokenSource)

public static Task<T> CancelAfterAsync<T>(this Task<T> task, int timeoutMilliseconds, CancellationTokenSource taskCts)

Parameters

task Task<T>
timeoutMilliseconds int
taskCts CancellationTokenSource

Returns

Task<T>

Type Parameters

T

FireAndForget(Task)

Extension to tell the compiler that we actually use the instance for something. This is that the "fire-and-forget" mechanism is being used intentionally.

public static void FireAndForget(this Task task)

Parameters

task Task

FireAndForget<T>(Task<T>)

Extension to tell the compiler that we actually use the instance for something. This is that the "fire-and-forget" mechanism is being used intentionally.

public static void FireAndForget<T>(this Task<T> task)

Parameters

task Task<T>

Type Parameters

T