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

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

        return Control.generated(gen)