From cc72a6d2116beb79a16ffd10393f601c359f57bb Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Thu, 7 Nov 2024 10:50:55 +0100 Subject: [PATCH] Update README.rst, clarify timeout() signature (#427) --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index e7d346a..43acf59 100644 --- a/README.rst +++ b/README.rst @@ -44,7 +44,7 @@ logic around block of code or in cases when ``asyncio.wait_for()`` is not suitable. Also it's much faster than ``asyncio.wait_for()`` because ``timeout`` doesn't create a new task. -The ``timeout(delay, *, loop=None)`` call returns a context manager +The ``timeout(delay)`` call returns a context manager that cancels a block on *timeout* expiring:: from async_timeout import timeout