StatefulServiceReplica.closeAsync(CancellationToken cancellationToken) 方法

定义

Closes the service replica when it is being shut down. Note that cancellation is advisory and that the operation might still be completed even if it is canceled.

public CompletableFuture<Void> closeAsync(CancellationToken cancellationToken)

参数

cancellationToken
CancellationToken

CancellationToken object to indicate the cancellation status of the operation.

返回

CompletableFuture<Void>

Returns CompletableFuture.

适用于