Show / Hide Table of Contents

Class PublicOrleansTaskExtensions

Utility functions for dealing with Tasks.

Inheritance
System.Object
PublicOrleansTaskExtensions
Namespace: Orleans
Assembly: Orleans.Core.Abstractions.dll
Syntax
public static class PublicOrleansTaskExtensions : object

Methods

| Improve this Doc View Source

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.

Declaration
public static void Ignore(this Task task)
Parameters
Type Name Description
Task task

The task to be ignored.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX