| AsyncHelpersWithTimeout Method |
Attaches a timeout to a continuation which will invoke the continuation when the specified
timeout has elapsed.
Namespace:
NLog.Common
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public static AsyncContinuation WithTimeout(
AsyncContinuation asyncContinuation,
TimeSpan timeout
)
Public Shared Function WithTimeout (
asyncContinuation As AsyncContinuation,
timeout As TimeSpan
) As AsyncContinuation
Dim asyncContinuation As AsyncContinuation
Dim timeout As TimeSpan
Dim returnValue As AsyncContinuation
returnValue = AsyncHelpers.WithTimeout(asyncContinuation,
timeout)
static member WithTimeout :
asyncContinuation : AsyncContinuation *
timeout : TimeSpan -> AsyncContinuation
Parameters
- asyncContinuation
- Type: NLog.CommonAsyncContinuation
The asynchronous continuation. - timeout
- Type: SystemTimeSpan
The timeout.
Return Value
Type:
AsyncContinuationWrapped continuation.
See Also