Edytuj

Udostępnij za pośrednictwem


PublicOrleansTaskExtensions Class

Definition

Utility functions for dealing with Task instances.

public static class PublicOrleansTaskExtensions
type PublicOrleansTaskExtensions = class
Public Module PublicOrleansTaskExtensions
Inheritance
PublicOrleansTaskExtensions

Methods

Box(Task)

Returns a Task<TResult> for the provided Task.

Box(Task<Object>)

Returns a Task<TResult> for the provided Task<TResult>.

Box<T>(Task<T>)

Returns a Task<TResult> for the provided Task<TResult>.

Ignore(Task)

Observes and ignores a potential exception on a given Task. If a Task fails and throws an exception which is never observed, it will be caught by the .NET finalizer thread. This function awaits the given task and if the exception is thrown, it observes this exception and simply ignores it. This will prevent the escalation of this exception to the .NET finalizer thread.

Unbox<T>(Task<Object>)

Returns a Task<TResult> for the provided Task<TResult>.

Applies to