Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class Bot1(object):
  2.  
  3. async def step01(self):
  4. print('step-01')
  5. await asyncio.sleep(0.6)
  6.  
  7. async def step02(self):
  8. print('step-02')
  9. await asyncio.sleep(0.6)
  10.  
  11. async def step03(self):
  12. print('step-03')
  13. await asyncio.sleep(0.6)
  14.  
  15. async def __call__(self, *args, **kwargs):
  16. await self.step01()
  17. await self.step02()
  18. await self.step03()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement