nuka
nuka.
run
Run coroutines:
nuka.run(do_something(host)
wait
A task that wait for a coroutine / event / future:
nuka.wait(do_something(host), event)
You can use a timeout:
nuka.wait(event, timeout=30)
Event
A named event that you can wait:
event = Event('myevent') async def do_something(host): nuka.wait(event)
cancel_on_error
Cancel futures when the coroutine raise:
@cancel_on_error(event) async def do_something(host): event.release()
nuka.hosts
nuka.utils