@wpazderski/js-utils
    Preparing search index...

    An internal handle for managing microtasks. It allows to cancel the microtask and check if it has been cancelled.

    interface MicrotaskExHandle {
        cancel: () => void;
        isCancelled: () => boolean;
    }
    Index

    Properties

    Properties

    cancel: () => void

    Cancels the scheduled microtask.

    isCancelled: () => boolean

    Checks if the microtask has been cancelled.

    Type declaration

      • (): boolean
      • Returns boolean

        true if the microtask has been cancelled, false otherwise.