Table of Contents

Method CancelGeneration

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

CancelGeneration()

Requests cancellation of active generation and cancels any pending replacement.

public GenerationTask CancelGeneration()

Returns

GenerationTask

The task that was active when cancellation was requested, or completedTask when no request was active.

Remarks

The method returns immediately. Yield the returned task to wait until that active request completes or reaches a cancellation checkpoint and finishes cleanup. A later caller may submit another request while the returned task is unwinding, so its completion does not by itself guarantee that isGenerating is false.