Sisk

Method

HttpServer.WaitNextAsync

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

WaitNextAsync(TimeSpan) #

Asynchronously waits for the next HTTP request to be processed, with a specified timeout.

C#
public Task<HttpServerExecutionResult> WaitNextAsync(TimeSpan timeout = default)

Parameters #

timeout TimeSpan

The time span to wait for the next request. If not specified, the default timeout is used.

Returns #

Task<HttpServerExecutionResult>

A task that represents the asynchronous operation. The task result contains the result of the HTTP server execution.

WaitNextAsync(CancellationToken) #

Asynchronously waits for the next HTTP request to be processed, with a specified cancellation token.

C#
public Task<HttpServerExecutionResult> WaitNextAsync(CancellationToken cancellation = default)

Parameters #

cancellation CancellationToken

The cancellation token to signal when the operation should be cancelled.

Returns #

Task<HttpServerExecutionResult>

A task that represents the asynchronous operation. The task result contains the result of the HTTP server execution.

Type to search the documentation and the API reference.