A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://nlog-project.org/documentation/v4.7.0/html/T_NLog_Common_AsyncHelpers.htm below:

AsyncHelpers Class

Helpers for asynchronous operations.

Inheritance Hierarchy Namespace:  NLog.Common
Assembly:

NLog (in NLog.dll) Version: 4.7.0+4d138800820311d0b60b6437f1dd2ed1d571d47d

Syntax
public static class AsyncHelpers
<ExtensionAttribute>
Public NotInheritable Class AsyncHelpers

You do not need to declare an instance of a static class in order to access its members.
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type AsyncHelpers =  class end

The AsyncHelpers type exposes the following members.

Methods   Name Description ForEachItemInParallelT

Iterates over all items in the given collection and runs the specified action in parallel (each action executes on a thread from thread pool).

ForEachItemSequentiallyT

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).

GetCombinedException

Gets the combined exception from all exceptions in the list.

PrecededBy

Modifies the continuation by pre-pending given action to execute just before it.

PreventMultipleCalls

Wraps the continuation with a guard which will only make sure that the continuation function is invoked only once.

Repeat

Repeats the specified asynchronous action multiple times and invokes asynchronous continuation at the end.

RunSynchronously

Runs the specified asynchronous action synchronously (blocks until the continuation has been invoked).

WithTimeout

Attaches a timeout to a continuation which will invoke the continuation when the specified timeout has elapsed.

Top See Also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4