code: def sleep(dt):
    
    fut = Future('sleep(%.3f)' % dt)
    eventloop.queue_call(dt, fut.set_result, None)
    return fut
docs: Public function to sleep some time.
  
    Example:
      yield tasklets.sleep(0.5)  # Sleep for half a sec.