Exemple #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()
Exemple #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()
Exemple #3
0
 def gen(parent):
     self.recomputeSubscription_(subscriptionId)
     return Control.empty()
Exemple #4
0
    def controlForKey_(self, subscriptionId):
        def gen(parent):
            self.recomputeSubscription_(subscriptionId)
            return Control.empty()

        return Control.generated(gen)
Exemple #5
0
 def gen(parent):
     self.recomputeSubscription_(subscriptionId)
     return Control.empty()
Exemple #6
0
    def controlForKey_(self, subscriptionId):
        def gen(parent):
            self.recomputeSubscription_(subscriptionId)
            return Control.empty()

        return Control.generated(gen)