hosanna-ui-docs - v0.9.0
    Preparing search index...

    Class HsCancellationToken

    Class representing a cancellation token for managing asynchronous operations.

    Implements

    Index

    Constructors

    Properties

    isCancelled: boolean = false

    Indicates whether the operation has been cancelled.

    onCancel?: () => void

    Callback function to execute when the operation is cancelled.

    Methods

    • Cancels the operation and optionally resets the token after cancellation.

      Parameters

      • resetAfterCancel: boolean = false

        Whether to reset the token after cancellation.

      Returns void