Handle

Asynchronous action handle.

You can stop the action by closing the handle.

The action is also stopped when the handle is garbage-collected. Because garbage collection is not deterministic, you should not rely on it and always close it when you want to stop it.

Handles cannot change thread.

Inheritors

Functions

Link copied to clipboard
Unsupported.
Link copied to clipboard
open fun close()
Close the native pointer.
abstract fun close()
Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Check if the pointer is equal to another one.
Link copied to clipboard
open fun hashCode(): Int
Get hash code.
Link copied to clipboard
open fun isClosed(): Boolean
Check if the native pointer is closed.
Link copied to clipboard
open fun isMutable(): Boolean
Check if the native pointer is mutable.
Link copied to clipboard
open fun isSamePointer(@NonNull other: Pointer): Boolean
Check if the pointer is the same as in another pointer.
Link copied to clipboard
open fun toString(): String
Report string describing this pointer.