9892a04a34
Version 0.22.1 (25 May 2021) release tasks as they complete in the task group; this might appear as a memory-leak for long-standing sessions Version 0.22.0 (25 Apr 2021) join() waits for all cancelled tasks to finish, including daemonic ones Version 0.21.1 (24 Apr 2021) handle peername of None in network code strip redundant whitespace from JSON (SomberNight) Version 0.21.0 (11 Mar 2021) There have been significant semantic and API changes for TaskGroups. Their behaviour is now consistent, reliable and they have the same semantics as curio. As such I consider their API finalized and stable. In addition to the notes below for 0.20.x: closed() became the attribute joined. cancel_remaining() does not cancel daemonic tasks. As before it waits for the cancelled tasks to complete. On return from join() all tasks including deamonic ones have been cancelled, but nothing is waited for. If leaving a TaskGroup context because of an exception, cancel_remaining() - which can block - is called before join(). Version 0.20.2 (10 Mar 2021) result, exception, results and exceptions are now attributes. They raise a RuntimeError if called before a TaskGroup’s join() operation has returned. Version 0.20.1 (06 Mar 2021) this release contains some significant API changes which users will need to carefully check their code for. the report_crash argument to spawn() is removed; instead a new one is named daemon. A daemon task’s exception (if any) is ignored by a TaskGroup. the join() method of TaskGroup (and so also when TaskGroup is used as a context manager) does not raise the exception of failed tasks. The full semantics are precisely described in the TaskGroup() docstring. Briefly: any task being cancelled or raising an exception causes join() to finish and all remaining tasks, including daemon tasks, to be cancelled. join() does not propagate task exceptions. the cancel_remaining() method of TaskGroup does not propagate any task exceptions TaskGroup supports the additional attributes ‘tasks’ and ‘daemons’. Also, after join() has completed, result() returns the result (or raises the exception) of the first completed task. exception() returns the exception (if any) of the first completed task. results() returns the results of all tasks and exceptions() returns the exceptions raised by all tasks. daemon tasks are ignored. The above changes bring the implementation in line with curio proper and the semantic changes it made over a year ago, and ensure that join() behaves consistently when called more than once.
5 lines
360 B
Text
5 lines
360 B
Text
$NetBSD: distinfo,v 1.5 2021/11/23 21:07:18 adam Exp $
|
|
|
|
BLAKE2s (aiorpcX-0.22.1.tar.gz) = e16f29c303bf6e9dcf00c42eff71ab2585e3827697fbae278c0a77d4321e4157
|
|
SHA512 (aiorpcX-0.22.1.tar.gz) = 0372c725d80dbaa7ea869957dfeeac522f9f0995b6ac5bb8a9f20ae768dc86d9fdaf831a54611ff09f459fa47c04e9f8f867374b17a485bfe92beb40108a5a11
|
|
Size (aiorpcX-0.22.1.tar.gz) = 28803 bytes
|