Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (1h)  pkgsrc-2024Q1 (11d)  pkgsrc-2023Q4 (58d)  pkgsrc-2023Q2 (91d)  pkgsrc-2023Q3 (170d) 

2024-05-29 12:45:24 UTC Now

2021-11-23 21:07:18 UTC MAIN commitmail json YAML

py-aiorpcX: updated to 0.22.1

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窶冱 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窶冱 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 窶賄aemons窶�. 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.

(adam)