CompactAsync()
Compacts the collection.
Invocation
await collection.CompactAsync(newName, cancellationToken = default);
Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
cancellationToken | The token to monitor for cancellation requests. The default value is CancellationToken.None. | CancellationToken | False |
Return
The compaction ID.