Interface CancellationTokenRegistration

    • Method Detail

      • close

        void close()
        Cancels the registration to a CancellationToken. Implementations of this method should not throw even if called multiple times or if the token is already in cancelled state.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable