Releases: junebash/swift-task-store
Releases · junebash/swift-task-store
Release list
v0.4.0
Features
TaskNameProviderprotocol for customizable task naming- Built-in providers:
.keyDescription,.constant("name"),.fromKey { ... } - Composable modifiers:
.withPrefix("prefix"),.withIncrementingSuffix() TaskStorenow accepts an optionalnameProviderparameter for all task creation methods
- Built-in providers:
v0.3.0
v0.2.0
v0.1.0
Initial release.
Features
TaskStore<Key>- Observable container for managing keyed async tasksTaskStoreDuplicateKeyBehavior- Configurable handling for duplicate key requests:.cancelPrevious(wait:)- Cancel and optionally wait for previous task.wait- Wait for previous task to complete before starting new one.runConcurrently- Run both tasks simultaneously.preferPrevious- Keep existing task, ignore new request