parameters: (delay, result=None, *, loop=None)
docstring: Coroutine that completes after a given time (in seconds).
docstring_summary: Coroutine that completes after a given time (in seconds).
docstring_tokens: Coroutine that completes after a given time ( in seconds ) .
function: async def sleep(delay, result=None, *, loop=None):
      """Coroutine that completes after a given time (in seconds)."""
      if delay <= 0:
          await __sleep0()
          return result
  
      if loop is None:
          loop = events.get_event_loop()
      future = loop.create_future()
      h = loop.call_later(delay,
                          futures._set_result_unless_cancelled,
                          future, result)
      try:
          return await future
      finally:
          h.cancel()
function_tokens: async def sleep ( delay , result = None , * , loop = None ) : if delay <= 0 : await __sleep0 ( ) return result if loop is None : loop = events . get_event_loop ( ) future = loop . create_future ( ) h = loop . call_later ( delay , futures . _set_result_unless_cancelled , future , result ) try : return await future finally : h . cancel ( )