Table of Contents

Method WaitForFailAsync

Namespace
Sisk.Core.Http.Streams
Assembly
Sisk.Core.dll

WaitForFailAsync(TimeSpan)

Asynchronously waits for the event source to fail or reach the specified idle tolerance.

public Task WaitForFailAsync(TimeSpan maximumIdleTolerance)

Parameters

maximumIdleTolerance TimeSpan

The maximum time to wait before considering the event source failed.

Returns

Task

A task that completes when the event source fails or the idle tolerance is reached.

WaitForFailAsync(CancellationToken)

Asynchronously waits for the event source to fail or be canceled.

public Task WaitForFailAsync(CancellationToken cancellation)

Parameters

cancellation CancellationToken

A token to cancel the wait operation.

Returns

Task

A task that completes when the event source fails or is canceled.