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

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)
Fire the given event to the specified channels and suspend
execution until it has been dispatched. This method may only
be invoked as argument to a ``yield`` on the top execution level
of a handler (e.g. "``yield self.callEvent(event)``").
It effectively creates and returns a generator
that will be invoked by the main loop until the event has
been dispatched (see :func:`circuits.core.handlers.handler`).

src/c/i/circuits-3.0.0.dev/examples/primitives/call.py   circuits(Download)
    def hello(self):
        x = yield self.call(foo())
        y = yield self.call(bar())
        yield x.value + y.value
 
    def started(self, component):
        x = yield self.call(hello())

src/c/i/circuits-3.0.0.dev/examples/factorial.py   circuits(Download)
    def started(self, component):
        Timer(1, Event.create("foo"), persist=True).register(self)
        x = yield self.call(task(factorial, 10))
        print("{0:d}".format(x.value))
        self.stop()

src/k/d/kdb-1.0.2/kdb/plugins/channels.py   kdb(Download)
 
        try:
            yield (yield self.call(event, "commands:channels"))
        except Exception as error:
            yield "ERROR: {0:s}".format(error)

src/k/d/kdb-1.0.2/kdb/plugins/rplugins.py   kdb(Download)
        else:
            value = yield self.call(
                task(
                    verify_plugin,
                    url,
 
            value = yield self.call(
                task(
                    verify_plugin,
                    url,
 
        try:
            yield (yield self.call(event, "commands:rplugins"))
        except Exception as error:
            yield "ERROR: {0:s}".format(error)

src/k/d/kdb-1.0.2/kdb/plugins/web/__init__.py   kdb(Download)
        try:
            url = self.parent.server.http.base
            value = yield self.call(task(check_url, url), "workerthreads")
            response = value.value
            response.raise_for_status()
 
            try:
                value = yield self.call(event, "commands")
                yield "\n".join(
                    escape(strip(msg))

src/k/d/kdb-1.0.2/kdb/plugins/rss.py   kdb(Download)
 
        value = yield self.call(
            task(
                check_feed,
                feed,

src/k/d/kdb-1.0.2/kdb/plugins/greeting.py   kdb(Download)
 
        try:
            yield self.call(event, "commands:greetings")
        except Exception as error:
            yield "ERROR: {0:s}".format(error)

src/k/d/kdb-1.0.2/kdb/plugins/google.py   kdb(Download)
 
        value = yield self.call(
            task(
                get_url,
                self.url,

src/c/i/circuits-3.0.0.dev/tests/core/test_call_wait.py   circuits(Download)
    def _on_call(self):
        x = yield self.call(hello())
        yield x.value
 
    def hello(self):
    def long_call(self):
        x = yield self.call(foo())
        yield x.value
 
    def foo(self):
    def eval(self):
        x = yield self.call(get_x())
        y = yield self.call(get_y())
        yield x.value + y.value