Guest User

Untitled

a guest
Jan 12th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. >>> import asyncio
  2. >>> async def foo(loop, iv):
  3. ... await loop.sleep(1)
  4. ... print(f'done: {iv}')
  5. ...
  6. >>> loop = asyncio.get_event_loop()
  7. >>> loop.call_later(2, foo, loop, 10)
  8. <TimerHandle when=36395.554089349 foo(<_UnixSelecto...e debug=False>, 10) at <input>:1>
  9. >>> loop.run_forever()
Add Comment
Please, Sign In to add comment