Skip to content

Commit 98f7423

Browse files
Merge branch 'develop' into main
2 parents 215aeaa + 06e3def commit 98f7423

4 files changed

Lines changed: 15 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Improved callback queue handling in MonoTask
1818
- Enhanced test coverage and reliability
1919

20+
## [0.0.9] - 2025-09-04
21+
22+
### Changed
23+
- Removed debug print statements in `MonoTask` and routed output through `Log` where applicable
24+
- CI: split per-class test jobs on develop; scheduled tests split per class
25+
- README and installation snippets updated to 0.0.9
26+
- CocoaPods podspec version bumped to 0.0.9
27+
28+
### Fixed
29+
- Minor workflow stability improvements
30+
2031
## [0.0.8] - 2025-09-03
2132

2233
### Added

Monstra.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = "Monstra"
3-
spec.version = "0.0.8"
3+
spec.version = "0.0.9"
44
spec.summary = "High-performance task execution and caching framework for Swift"
55
spec.description = <<-DESC
66
Monstra is a thread-safe, high-performance task executor that ensures only one instance

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Add Monstra to your `Package.swift`:
5454

5555
```swift
5656
dependencies: [
57-
.package(url: "https://github.com/yangchenlarkin/Monstra.git", from: "0.0.8")
57+
.package(url: "https://github.com/yangchenlarkin/Monstra.git", from: "0.0.9")
5858
]
5959
```
6060

@@ -68,7 +68,7 @@ Or add it directly in Xcode:
6868
Add Monstra to your `Podfile`:
6969

7070
```ruby
71-
pod 'Monstra', '~> 0.0.8'
71+
pod 'Monstra', '~> 0.0.9'
7272
```
7373

7474
**Note**: Monstra is published as a unified framework, so you get all components together.

Sources/Monstask/MonoTask.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,7 @@ public class MonoTask<TaskResult> {
236236
// Generate new execution ID for tracking (important for clearResult cancellation)
237237
let currentExecutionID = executionIDFactory.safeNextInt64()
238238
self.executionID = currentExecutionID
239-
print("🟢 [ID-START]", "currentExeID:", currentExecutionID, "self.exeID:", self.executionID as Any)
240-
239+
241240
taskQueue.async { [weak self] in
242241
// === Execute User Task ===
243242
self?.executeBlock { [weak self] executionResult in
@@ -246,10 +245,8 @@ public class MonoTask<TaskResult> {
246245
defer { semaphore.signal() }
247246

248247
// Check if this execution was cancelled (execution ID changed)
249-
print("🔴 [ID-CHECK]", "currentExeID:", currentExecutionID, "self.exeID:", self.executionID as Any, "result:", executionResult)
250248
guard currentExecutionID == self.executionID else { return }
251249
self.executionID = executionIDFactory.safeNextInt64()
252-
print("🟡 [ID-WIN]", "currentExeID:", currentExecutionID, "newSelf.exeID:", self.executionID as Any, "result:", executionResult)
253250

254251
// === Phase 4: Handle Success ===
255252
if case let .success(successData) = executionResult {
@@ -297,11 +294,9 @@ public class MonoTask<TaskResult> {
297294
let callbacksToNotify = waitingCallbacks
298295
waitingCallbacks = nil // Task transitions to "idle" state
299296

300-
print("🩷 [ID-WIN-RESULT]", "result:", executionResult)
301297
callbackQueue.async {
302298
// Notify all callbacks with the same result
303299

304-
print("🟤 [ID-WIN-RESULT]", "result:", executionResult)
305300
guard let callbacksToNotify else { return }
306301
for callback in callbacksToNotify {
307302
callback(executionResult)

0 commit comments

Comments
 (0)