Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/heft > IHeftTaskRunHookOptions > cancellationToken

IHeftTaskRunHookOptions.cancellationToken property

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A cancellation token that is used to signal that the build is cancelled. This can be used to stop operations early and allow for a new build to be started.

Signature:

readonly cancellationToken: CancellationToken;