def _simple_task(self): yield sleep(0.5) return_in_coroutine('ok')
def _test(): sqlhelper = SqlHelper('movoto') r = yield sqlhelper.get_all_by_sql('show databases;') return_in_coroutine(r)
def _test(): sqlhelper = SqlHelper('movoto') return_in_coroutine('ok')
def _task_for_sleep(self, sec): yield sleep(sec) return_in_coroutine(sec)
def _test(): sqlhelper = SqlHelper("movoto") r = yield sqlhelper.get_all_by_sql("show databases;") return_in_coroutine(r)
def _test(): sqlhelper = SqlHelper("movoto") return_in_coroutine("ok")