Connection

class Connection(collectionJob: Job, parentJob: Job)

Represents a connection to a signal that can be cancelled.

Constructors

Link copied to clipboard
constructor(collectionJob: Job, parentJob: Job)

Properties

Link copied to clipboard

Returns whether this connection is still active.

Functions

Link copied to clipboard
fun cancel()

Cancels this connection, preventing any further actions from being executed.