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