removeObservationsFor

fun removeObservationsFor(predicate: (scope: Any) -> Boolean)

Remove observations using predicate to identify target scopes to be removed. This is used when a scope is no longer in the hierarchy and should not receive any callbacks.