Ejemplo n.º 1
0
    def __init__(self, computedGraph, computedValueGateway,
                 sharedStateSynchronizer):
        self.controlRoot = Control.root(
            Control.overlayGenerated(lambda: SubscriptionKeys().keys,
                                     self.controlForKey_), computedGraph, self)
        self.computedGraph = computedGraph
        self.computedValueGateway = computedValueGateway
        self.sharedStateSynchronizer = sharedStateSynchronizer

        self.subscriptionGetters = {}
        self.subscriptionValues = {}
        self.changedSubscriptions = set()
Ejemplo n.º 2
0
    def __init__(self, computedGraph, computedValueGateway, sharedStateSynchronizer):
        self.controlRoot = Control.root(
            Control.overlayGenerated(
                lambda: SubscriptionKeys().keys,
                self.controlForKey_
                ),
            computedGraph,
            self
            )
        self.computedGraph = computedGraph
        self.computedValueGateway = computedValueGateway
        self.sharedStateSynchronizer = sharedStateSynchronizer

        self.subscriptionGetters = {}
        self.subscriptionValues = {}
        self.changedSubscriptions = set()
Ejemplo n.º 3
0
 def gen(parent):
     self.recomputeSubscription_(subscriptionId)
     return Control.empty()
Ejemplo n.º 4
0
    def controlForKey_(self, subscriptionId):
        def gen(parent):
            self.recomputeSubscription_(subscriptionId)
            return Control.empty()

        return Control.generated(gen)
Ejemplo n.º 5
0
 def gen(parent):
     self.recomputeSubscription_(subscriptionId)
     return Control.empty()
Ejemplo n.º 6
0
    def controlForKey_(self, subscriptionId):
        def gen(parent):
            self.recomputeSubscription_(subscriptionId)
            return Control.empty()

        return Control.generated(gen)