Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-97545: Make Semaphore run faster. (#97549) | Cyker Way | 2022-09-26 | 1 | -21/+17 |
| | |||||
* | gh-90155: Fix bug in asyncio.Semaphore and strengthen FIFO guarantee (#93222) | Cyker Way | 2022-09-22 | 1 | -22/+42 |
| | | | | | | | | | The main problem was that an unluckily timed task cancellation could cause the semaphore to be stuck. There were also doubts about strict FIFO ordering of tasks allowed to pass. The Semaphore implementation was rewritten to be more similar to Lock. Many tests for edge cases (including cancellation) were added. | ||||
* | gh-84623: Remove unused imports in stdlib (#93773) | Victor Stinner | 2022-06-13 | 1 | -1/+0 |
| | |||||
* | bpo-43352: Add a Barrier object in asyncio lib (GH-24903) | Duprat | 2022-03-25 | 1 | -2/+155 |
| | | | | Co-authored-by: Yury Selivanov <yury@edgedb.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> | ||||
* | bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) | Andrew Svetlov | 2022-03-22 | 1 | -6/+10 |
| | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | ||||
* | bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431) | Serhiy Storchaka | 2022-02-21 | 1 | -10/+6 |
| | |||||
* | bpo-45416: Fix use of asyncio.Condition() with explicit Lock objects (GH-28850) | Joongi Kim | 2021-10-10 | 1 | -2/+0 |
| | | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
* | bpo-42392: Improve removal of *loop* parameter in asyncio primitives (GH-23499) | Yurii Karabas | 2020-11-25 | 1 | -10/+14 |
| | | | | | | | | | | * Update code after merge review from 1st1 * Use a sentinel approach for loop parameter Remove unnecessary _get_running_loop patching * Use more clear function name (_verify_parameter_is_marker -> _verify_no_loop) * Add init method to _LoopBoundMixin to check that loop param wasn't used | ||||
* | bpo-42392: Remove loop parameter form asyncio locks and Queue (#23420) | Yurii Karabas | 2020-11-24 | 1 | -52/+17 |
| | | | Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> | ||||
* | bpo-34793: Drop old-style context managers in asyncio.locks (GH-17533) | Andrew Svetlov | 2020-02-01 | 1 | -83/+0 |
| | |||||
* | bpo-36373: Fix deprecation warnings (GH-15889) | Andrew Svetlov | 2019-09-11 | 1 | -1/+1 |
| | | | https://bugs.python.org/issue36373 | ||||
* | bpo-36373: Deprecate explicit loop parameter in all public asyncio APIs ↵ | Emmanuel Arias | 2019-09-10 | 1 | -12/+29 |
| | | | | | | | | | | | | | | | [locks] (GH-13920) This PR deprecate explicit loop parameters in all public asyncio APIs This issues is split to be easier to review. Third step: locks.py https://bugs.python.org/issue36373 | ||||
* | bpo-34767: Do not always create a collections.deque() in asyncio.Lock() ↵ | Zackery Spytz | 2019-06-05 | 1 | -2/+7 |
| | | | | | (GH-13834) https://bugs.python.org/issue34767 | ||||
* | bpo-36921: Deprecate @coroutine for sake of async def (GH-13346) | Andrew Svetlov | 2019-05-16 | 1 | -2/+6 |
| | | | | | | The second attempt. Now deprecate `@coroutine` only, keep `yield from fut` as is. https://bugs.python.org/issue36921 | ||||
* | bpo-34622: Extract asyncio exceptions into a separate module (GH-9141) | Andrew Svetlov | 2018-09-11 | 1 | -3/+4 |
| | |||||
* | bpo-32841: Fix cancellation in awaiting asyncio.Condition (#5665) | Bar Harel | 2018-02-14 | 1 | -1/+5 |
| | |||||
* | bpo-32734: Fix asyncio.Lock multiple acquire safety issue (GH-5466) | Bar Harel | 2018-02-02 | 1 | -10/+22 |
| | |||||
* | bpo-32258: Replace 'yield from' to 'await' in asyncio docs (#4779) | Andrew Svetlov | 2017-12-11 | 1 | -6/+13 |
| | | | | | | * Replace 'yield from' to 'await' in asyncio docs * Fix docstrings | ||||
* | bpo-32262: Fix codestyle; use f-strings formatting where necessary. (#4775) | Yury Selivanov | 2017-12-10 | 1 | -11/+10 |
| | |||||
* | bpo-32253: Deprecate with statement and bare await for asyncio locks (GH-4764) | Andrew Svetlov | 2017-12-09 | 1 | -0/+7 |
| | | | | | * Add test for 'with (yield from lock)' * Deprecate with statement for asyncio locks * Document the deprecation | ||||
* | bpo-32193: Convert asyncio to async/await usage (#4753) | Andrew Svetlov | 2017-12-08 | 1 | -23/+19 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Convert asyncio/tasks.py to async/await * Convert asyncio/queues.py to async/await * Convert asyncio/test_utils.py to async/await * Convert asyncio/base_subprocess.py to async/await * Convert asyncio/subprocess.py to async/await * Convert asyncio/streams.py to async/await * Fix comments * Convert asyncio/locks.py to async/await * Convert asyncio.sleep to async def * Add a comment * Add missing news * Convert stubs from AbstrctEventLoop to async functions * Convert subprocess_shell/subprocess_exec * Convert connect_read_pipe/connect_write_pip to async/await syntax * Convert create_datagram_endpoint * Convert create_unix_server/create_unix_connection * Get rid of old style coroutines in unix_events.py * Convert selector_events.py to async/await * Convert wait_closed and create_connection * Drop redundant line * Convert base_events.py * Code cleanup * Drop redundant comments * Fix indentation * Add explicit tests for compatibility between old and new coroutines * Convert windows event loop to use async/await * Fix double awaiting of async function * Convert asyncio/locks.py * Improve docstring * Convert tests to async/await * Convert more tests * Convert more tests * Convert more tests * Convert tests * Improve test | ||||
* | asyncio: Remove asyncio/compat.py (#4606) | Victor Stinner | 2017-11-28 | 1 | -16/+13 |
| | | | | | | | | | | The asyncio/compat.py file was written to support Python < 3.5 and Python < 3.5.2. But Python 3.5 doesn't accept bugfixes anymore, only security fixes. There is no more need to backport bugfixes to Python 3.5, and so no need to have a single code base for Python 3.5, 3.6 and 3.7. Say hello (again) to "async" and "await", who became real keywords in Python 3.7 ;-) | ||||
* | Fix waiter cancellation in asyncio.Lock (#1031) | Mathieu Sornay | 2017-06-09 | 1 | -5/+12 |
| | | | | | | Avoid a deadlock when the waiter who is about to take the lock is cancelled Issue #27585 | ||||
* | In asyncio.locks.Lock.acquire(): Avoid deadlock when a cancelled future is ↵ | Guido van Rossum | 2016-08-23 | 1 | -1/+1 |
| | | | | in self._waiters. | ||||
* | Issue #22970: asyncio: Fix inconsistency cancelling Condition.wait. | Yury Selivanov | 2016-06-11 | 1 | -1/+7 |
| | | | | Patch by David Coles. | ||||
* | Fix typos in code comment and documentation | Martin Panter | 2016-06-04 | 1 | -1/+1 |
| | |||||
* | Issue #27041: asyncio: Add loop.create_future method | Yury Selivanov | 2016-05-16 | 1 | -4/+4 |
| | |||||
* | Also rewrote the guts of asyncio.Semaphore (patch by manipopopo). | Guido van Rossum | 2015-09-29 | 1 | -16/+21 |
| | |||||
* | asyncio: sync with github | Victor Stinner | 2015-07-25 | 1 | -1/+0 |
| | | | | | | | | | * Fix ResourceWarning warnings in test_streams * Return True from StreamReader.eof_received() to fix http://bugs.python.org/issue24539 (but still needs a unittest). Add StreamReader.__repr__() for easy debugging. * remove unused imports * Issue #234: Drop JoinableQueue on Python 3.5+ | ||||
* | asyncio: Add asyncio.compat module | Victor Stinner | 2015-07-25 | 1 | -4/+2 |
| | | | | | Move compatibility helpers for the different Python versions to a new asyncio.compat module. | ||||
* | Sync asyncio code from default branch. | Yury Selivanov | 2015-05-13 | 1 | -55/+53 |
| | |||||
* | Issue #23456: Add missing @coroutine decorators in asyncio | Victor Stinner | 2015-03-18 | 1 | -0/+3 |
| | |||||
* | Issue #22369: Change "context manager protocol" to "context management ↵ | Serhiy Storchaka | 2014-09-10 | 1 | -2/+2 |
| | | | | protocol". | ||||
* | Accept optional lock object in Condition ctor (tulip issue #198) | Andrew Svetlov | 2014-07-26 | 1 | -3/+6 |
| | |||||
* | asyncio: sync with Tulip, add a new asyncio.coroutines module | Victor Stinner | 2014-06-28 | 1 | -6/+6 |
| | |||||
* | asyncio: Locks refactor: use a separate context manager; remove ↵ | Guido van Rossum | 2014-01-26 | 1 | -22/+60 |
| | | | | Semaphore._locked. | ||||
* | asyncio: Don't special-case GeneratorExit in Condition.wait(). | Guido van Rossum | 2014-01-10 | 1 | -6/+1 |
| | |||||
* | Shorten lines. | Guido van Rossum | 2013-12-19 | 1 | -2/+2 |
| | |||||
* | asyncio: replace our with asynchronous in docstring | Victor Stinner | 2013-12-02 | 1 | -1/+1 |
| | |||||
* | asyncio: document locks | Victor Stinner | 2013-12-02 | 1 | -3/+3 |
| | |||||
* | asyncio: Add BoundedSemaphore to export list in locks.__all__. | Guido van Rossum | 2013-11-25 | 1 | -1/+1 |
| | |||||
* | asyncio: Change bounded semaphore into a subclass, like ↵ | Guido van Rossum | 2013-11-23 | 1 | -17/+19 |
| | | | | threading.[Bounded]Semaphore. | ||||
* | asyncio: Make Semaphore(0) work properly. | Guido van Rossum | 2013-11-21 | 1 | -2/+2 |
| | |||||
* | asyncio: Locks improvements by Arnaud Faure: better repr(), change Conditio\ | Guido van Rossum | 2013-11-04 | 1 | -24/+54 |
| | | | | n structure. | ||||
* | Initial checkin of asyncio package (== Tulip, == PEP 3156). | Guido van Rossum | 2013-10-17 | 1 | -0/+401 |