def idle(priority=0):
 hub = get_hub()
 watcher = hub.loop.idle()
 if priority:
  watcher.priority = priority
 hub.wait(watcher)

def idle ( priority = 0 ) : hub = get_hub ( ) watcher = hub . loop . idle ( ) if priority : watcher . priority = priority hub . wait ( watcher )
cause the calling greenlet to wait until the event loop is idle .