Ejemplo n.º 1
0
 def _simple_task(self):
     yield sleep(0.5)
     return_in_coroutine('ok')
Ejemplo n.º 2
0
 def _test():
     sqlhelper = SqlHelper('movoto')
     r = yield sqlhelper.get_all_by_sql('show databases;')
     return_in_coroutine(r)
Ejemplo n.º 3
0
 def _test():
     sqlhelper = SqlHelper('movoto')
     return_in_coroutine('ok')
Ejemplo n.º 4
0
 def _task_for_sleep(self, sec):
     yield sleep(sec)
     return_in_coroutine(sec)
Ejemplo n.º 5
0
 def _test():
     sqlhelper = SqlHelper("movoto")
     r = yield sqlhelper.get_all_by_sql("show databases;")
     return_in_coroutine(r)
Ejemplo n.º 6
0
 def _test():
     sqlhelper = SqlHelper("movoto")
     return_in_coroutine("ok")