Packages

 

com.aspose.cad

Class InterruptionTokenSource

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable


    public class InterruptionTokenSource
    extends Object
    implements com.aspose.ms.System.IDisposable

    Source that provides token used to interrupt long operations and triggers interruption. Must be disposed!

    • Constructor Detail

      • InterruptionTokenSource

        public InterruptionTokenSource()

        Creates source

    • Method Detail

      • dispose

        public final void dispose()

        Disposes source

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable
      • getToken

        public final InterruptionToken getToken()

        Token used to interrupt long operations

      • interrupt

        public final void interrupt()

        Triggers the interruption of operation