Method StopAsync
- Namespace
- IntentSharp.Trials
- Assembly
- IntentSharp.dll
StopAsync(DocumentId, CancellationToken)
Stops the trial of document: no later call runs its candidate, and a sample recorded for it
afterwards is dropped. With a document store, the calls counted since the last sample are written to its state
before this returns. Nothing happens when no trial of the document is running.
public ValueTask StopAsync(DocumentId document, CancellationToken ct = default)
Parameters
documentDocumentIdThe intent document on trial.
ctCancellationTokenStops waiting for the last write of the counts; the trial is stopped either way.
Returns
- ValueTask