Skip to content

TestCluster.DeactivateAsync(IAddressable)

DeactivateAsync(IAddressable)

View source
public Task DeactivateAsync(IAddressable grain)
Deactivates the current activation of the specified grain and waits for deactivation to complete.

Parameters

grainIAddressable
The grain to deactivate.

Returns

A task that completes when the grain has been deactivated.

Examples

await cluster.DeactivateAsync(grain.GetGrainId());