stream2py.utility#
Low-level building blocks used by stream2py’s buffers and readers.
These are general-purpose data structures and synchronization primitives that do not depend on stream2py objects themselves:
stream2py.utility.sorted_collection– a sorted sequence with bisect-based lookupstream2py.utility.sorted_deque– a bounded sorted dequestream2py.utility.locked_sorted_deque– a sorted deque guarded by a lockstream2py.utility.reader_writer_lock– a multi-reader/single-writer lockstream2py.utility.typing_hints– shared type aliases
Modules
Sorted Deque that handles Reader-Writer Priority |
|
READER-WRITER LOCK WITH PRIORITY FOR WRITERS |
|
Sequence sorted by a key function. |
|
Deque sorted by a key function. |
|
Typing hints |