PublicOrleansTaskExtensions.Ignore(Task) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public static void Ignore (this System.Threading.Tasks.Task task);
static member Ignore : System.Threading.Tasks.Task -> unit
<Extension()>
Public Sub Ignore (task As Task)
Parameters
- task
- Task
The task to be ignored.