Android SDK Version
  • java.lang.Object
    • com.facebook.bolts.CancellationTokenRegistration
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class CancellationTokenRegistration
extends java.lang.Object
implements java.io.Closeable
Represents a callback delegate that has been registered with a CancellationToken.
Method Summary
Modifier and TypeMethod and Description
voidclose()
Unregisters the callback runnable from the cancellation token.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

close

public void close()
Unregisters the callback runnable from the cancellation token.
Specified by:
close in interface java.io.Closeable
Specified by:
close in interface java.lang.AutoCloseable