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: 4.3.0
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 memberForEachItemSequentiallyT
Iterates over all items in the given collection and runs the specified action in sequence (each action executes only after the preceding one has completed without an error).
Public methodStatic memberGetCombinedException
Gets the combined exception from all exceptions in the list.
Public methodStatic memberPrecededBy
Modifies the continuation by pre-pending given action to execute just before it.
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 memberRunSynchronously
Runs the specified asynchronous action synchronously (blocks until the continuation has been invoked).
Public methodStatic memberWithTimeout
Attaches a timeout to a continuation which will invoke the continuation when the specified timeout has elapsed.
Top
See Also