cancel
Ends the session as canceled and, unless it already finished, tells the backend without waiting for its answer. A next call in flight is abandoned, closing a scanner it has open, and returns the StepResult.Finished carrying this outcome. Calling it again returns the first outcome.