def GenSleep(seconds):
 io_loop = ioloop.IOLoop.current()
 return gen.Task(io_loop.add_timeout, (io_loop.time() + seconds))

def GenSleep ( seconds ) : io_loop = ioloop . IOLoop . current ( ) return gen . Task ( io_loop . add_timeout , ( io_loop . time ( ) + seconds ) )
wait for a period of time without blocking .