def call(self, command): """Execute a command on the event-loop and then return the result when finished.""" if Plugin._app is None: raise AssertionError("The property ._app is not assigned.") result = yield from execute(command) return result
def test(future): result = yield from commands.execute('pwd') future.set_result(result)