Subscription

class Subscription(val owner: Owner, cleanup: () => Unit)

Represents a leaky resource that needs to be cleaned up.

Subscription is linked for its life to a given owner. It can be killed by that owner, or externally using .kill().

See also: Ownership documentation, as well as Owner scaladoc

Value parameters:
cleanup

Note: Must not throw!

class Object
trait Matchable
class Any

Value members

Concrete methods

def isKilled: Boolean
def kill(): Unit