Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/c/i/circuits-3.0.0.dev/examples/primitives/wait.py   circuits(Download)
    def hello(self):
        x = self.fire(foo())
        yield self.wait("foo")
 
        y = self.fire(bar())
        yield self.wait("bar")
    def started(self, component):
        x = self.fire(hello())
        yield self.wait("hello")
        print("{0:d}".format(x.value))
        self.stop()

src/c/i/circuits-3.0.0.dev/examples/testing/pytest/hello.py   circuits(Download)
 
        x = self.fire(hello())  # Fire hello Event
        yield self.wait("hello")  # Wait for Hello Event to fire
 
        print(x.value)  # Print the value we got back from firing Hello

src/c/i/circuits-3.0.0.dev/tests/core/test_call_wait.py   circuits(Download)
    def _on_wait(self):
        x = self.fire(hello())
        yield self.wait("hello")
        yield x.value
 
    def long_wait(self):
        x = self.fire(foo())
        yield self.wait("foo")
        yield x.value
 
    def wait_return(self):
        self.fire(foo())
        yield (yield self.wait("foo"))