Class AbortController.AbortSignal

  • Enclosing class:
    AbortController

    public class AbortController.AbortSignal
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AbortSignal()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.InterruptedException getException()  
      void subscribe​(java.lang.Runnable callback)  
      void throwIfAborted()  
      void unsubscribe​(java.lang.Runnable callback)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbortSignal

        public AbortSignal()
    • Method Detail

      • subscribe

        public void subscribe​(java.lang.Runnable callback)
      • unsubscribe

        public void unsubscribe​(java.lang.Runnable callback)
      • getException

        public java.lang.InterruptedException getException()
      • throwIfAborted

        public void throwIfAborted()
                            throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException