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.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
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