Releases: LamaAni/zthreading.py
Releases · LamaAni/zthreading.py
Update PR tests actions and fix deprecated functions for python 3.10
Fix deprecated functions for python >3.10
Fixes:
- Fixed deprecated threading.currentThread -> threading.current_thread
Bugfix - return value on catch_signal
Fixes
- Return value propagation on catch_signal decorator
Signal Handling
New
- Added signal handling with a global, reversible signal handler.
- Added decorator for signal catch.
- Added as_task decorator
Added decorator collect_delayed_calls_async (release)
What
- Added a common decorator to allow to collect consecutive async calls.
- Added ability to determine daemon vs non daemon decorators.
- Added ignore waiting calls on consecutive within an interval.
Added decorator collect_delayed_calls_async
What
- Added a common decorator to allow to collect consecutive async calls.
- Added ability to determine daemon vs non daemon decorators.
Fixed error catching in wait_for_events and wait_for
Changes:
- Error catching in wait_for_events and wait_for
- Added support for predict method with event object.
Breaking changes:
- Changed wait_for_events predict method from predict(handler, name:str, *args,**kwargs) to predict(handler, event)
Added support for multiple event names on stream
0.1.12 Added pytest to cd/ci
Moved to event object model with sender
What:
- Changed the internal event passing model from (name, *args,**kwargs) to Event object.
- Added sender to event object - the object which triggered the event
Breaking changes:
- The on_event argument changed from on_event(name,*args,**kwargs) to on_event(evnt:Event).
Added support for event acction error location tracing
0.1.9 Updated the error throw to allow proper line tracing