DynamicOwner

com.raquo.airstream.ownership.DynamicOwner
class DynamicOwner(onAccessAfterKilled: () => Unit)

DynamicOwner manages DynamicSubscription-s similarly to how Owner manages Subscriptions, except DynamicSubscription can be activated and deactivated repeatedly.

Value parameters

onAccessAfterKilled

Called if you attempt to use any Owner created by this DynamicOwner after that Owner was killed. It's intended to log and/or throw for reporting / debugging purposes.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def activate(): Unit
def deactivate(): Unit
def hasSubscriptions: Boolean
def isActive: Boolean
def maybeCurrentOwner: Option[Owner]
def numSubscriptions: Int

Exposing this for testing mostly. Outside world should not need to know anything about this owner's subscriptions.

Exposing this for testing mostly. Outside world should not need to know anything about this owner's subscriptions.

Attributes