Release Note
Added
-
Added a new optional constructor parameter to the
AsyncIOProcessingServicecalledenforce_submission_order. WhenTrue, submissions are processed in the same order as they were received, including nested/inner submissions and across threads. Default:False. -
Added a new optional constructor parameter to the
AsyncIOProcessingServicecalledforce_async. WhenTrue, synchronous callbacks submitted to the processing service will be forced to run asynchronously through theasyncio.to_thread()function. Default:False. -
Added a new property to the
AsyncIOProcessingServicecalledtask_name, which returns the name used for all tasks created by a processing service instance. -
Added a new property to the
AsyncIOProcessingServicecalledtask_count, which returns the number of tasks that are currently active within anAsyncIOProcessingServiceinstance. -
Added a new class method to the
AsyncIOProcessingServicecalledall_tasks(), which returns all currently active tasks across all instances. -
Added a new class method to the
AsyncIOProcessingServicecalledguard(), which is a decorator forasynccallables that ensures all active tasks across all instances in the current event loop are completed before the decorated coroutine continues. -
Added a new
Observablesubclass calledObservableValue, a value-centric observable that focuses on a single value and its changes over time. -
Added a new
Observablesubclass calledObservableStream, a data flow-centric observable that focuses exclusively on the stream of its entries over time.
Changed
-
Updated internal methods of the
AsyncIOProcessingServicefor standardized naming. -
Updated the
wait_for_tasks()method of theAsyncIOProcessingServiceto wait for all tasks in the current asyncio loop, including new and nested tasks. Previously, only active tasks were awaited. -
Updated the
submit()method of theAsyncIOProcessingServiceto handle task submissions based on theenforce_submission_orderandforce_asyncconfigurations. -
Updated the
_emit_next()method of theObservablebase class to incorporate a new optional parameter calledsubscribers, which corresponds to the collection of subscribers to be used for the notification. -
Updated the
_emit_error()method of theObservablebase class to incorporate a new optional parameter calledsubscribers, which corresponds to the collection of subscribers to be used for the notification. -
Updated the
_emit_complete()method of theObservablebase class to incorporate a new optional parameter calledsubscribers, which corresponds to the collection of subscribers to be used for the notification.
Changelog
- Full Changelog: 0.7.2...0.8.0
- Contributors: @mdapena