Click or drag to resize

AsyncHelpers Class

Helpers for asynchronous operations.
Inheritance Hierarchy
SystemObject
  NLog.CommonAsyncHelpers

Namespace:  NLog.Common
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public static class AsyncHelpers

The AsyncHelpers type exposes the following members.

Methods
  NameDescription
Public methodStatic memberForEachItemInParallelT
Iterates over all items in the given collection and runs the specified action in parallel (each action executes on a thread from thread pool).
Public methodStatic memberGetCombinedException
Gets the combined exception from all exceptions in the list.
Public methodStatic memberPreventMultipleCalls
Wraps the continuation with a guard which will only make sure that the continuation function is invoked only once.
Public methodStatic memberRepeat
Repeats the specified asynchronous action multiple times and invokes asynchronous continuation at the end.
Public methodStatic memberWithTimeout
Attaches a timeout to a continuation which will invoke the continuation when the specified timeout has elapsed.
Top
See Also