Build Information
Successful build of Monstra, reference v0.1.0 (44efbc
), with Swift 6.2 (beta) for macOS (SPM) on 7 Sep 2025 23:23:10 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yangchenlarkin/Monstra.git
Reference: v0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yangchenlarkin/Monstra
* tag v0.1.0 -> FETCH_HEAD
HEAD is now at 44efbcc Release v0.1.0: Update version numbers and changelog
Cloned https://github.com/yangchenlarkin/Monstra.git
Revision (git rev-parse @):
44efbccb666635430d416dfcc2b810231e31a807
SUCCESS checkout https://github.com/yangchenlarkin/Monstra.git at v0.1.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/yangchenlarkin/Monstra.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/15] Compiling Monstra Heap.swift
[4/16] Compiling Monstra TracingIDFactory.swift
[5/16] Emitting module Monstra
[6/16] Compiling Monstra CPUTimeStamp.swift
[7/16] Compiling Monstra DoublyLink.swift
[8/16] Compiling Monstra PriorityLRUQueue.swift
[9/16] Compiling Monstra TTLPriorityLRUQueue.swift
[10/16] Compiling Monstra KVHeavyTasksManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1011:54: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1009 | dataProviders[key] = DataProvider(key: key, customEventPublisher: { [weak self] customEvent in
1010 | // Handle custom events (progress updates, status changes, etc.)
1011 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1012 | guard let taskManager = self else { return }
1013 | taskManager.semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1009:87: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1007 | // Create new DataProvider instance if not already present (supports reuse from .reuse strategy)
1008 | if dataProviders[key] == nil {
1009 | dataProviders[key] = DataProvider(key: key, customEventPublisher: { [weak self] customEvent in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1010 | // Handle custom events (progress updates, status changes, etc.)
1011 | DispatchQueue.global().async { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1012:45: warning: capture of non-sendable type 'K.Type' in an isolated closure
1010 | // Handle custom events (progress updates, status changes, etc.)
1011 | DispatchQueue.global().async { [weak self] in
1012 | guard let taskManager = self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
1013 | taskManager.semaphore.wait()
1014 | defer { taskManager.semaphore.signal() }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1011:54: warning: capture of non-sendable type 'K.Type' in an isolated closure
1009 | dataProviders[key] = DataProvider(key: key, customEventPublisher: { [weak self] customEvent in
1010 | // Handle custom events (progress updates, status changes, etc.)
1011 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
1012 | guard let taskManager = self else { return }
1013 | taskManager.semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1025:54: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1023 | }, resultPublisher: { [weak self] result in
1024 | // Handle final task result (success or failure)
1025 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1026 | guard let taskManager = self else { return }
1027 | taskManager.semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1023:41: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1021 | }
1022 | }
1023 | }, resultPublisher: { [weak self] result in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1024 | // Handle final task result (success or failure)
1025 | DispatchQueue.global().async { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1026:45: warning: capture of non-sendable type 'K.Type' in an isolated closure
1024 | // Handle final task result (success or failure)
1025 | DispatchQueue.global().async { [weak self] in
1026 | guard let taskManager = self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
1027 | taskManager.semaphore.wait()
1028 | defer { taskManager.semaphore.signal() }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1025:54: warning: capture of non-sendable type 'K.Type' in an isolated closure
1023 | }, resultPublisher: { [weak self] result in
1024 | // Handle final task result (success or failure)
1025 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
1026 | guard let taskManager = self else { return }
1027 | taskManager.semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:125:49: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
123 | Task {
124 | do {
125 | let res = try await asyncMonoprovide(key)
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
126 | callback(.success(res))
127 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:121:40: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
119 | case let .multiprovide(maximumBatchCount, multiprovide):
120 | privateDataProvider = .multiprovide(maximumBatchCount: maximumBatchCount, multiprovide)
121 | case let .asyncMonoprovide(asyncMonoprovide):
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
122 | privateDataProvider = .monoprovide { key, callback in
123 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:136:43: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
134 | Task {
135 | do {
136 | let res = try await asyncMultiprovide(keys)
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
137 | callback(.success(res))
138 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:132:60: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
130 | }
131 | }
132 | case let .asyncMultiprovide(maximumBatchCount, asyncMultiprovide):
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
133 | privateDataProvider = .multiprovide(maximumBatchCount: maximumBatchCount) { keys, callback in
134 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:290:21: warning: capture of non-sendable type 'K.Type' in an isolated closure
288 | let capturedResults = results
289 | DispatchQueue.global().async {
290 | multiCallback(
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
291 | keys.map { ($0, capturedResults[$0] ?? .success(nil)) }
292 | )
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:273:27: warning: capture of non-sendable type 'K.Type' in an isolated closure
271 | /// - keys: Array of keys to fetch (duplicates are allowed)
272 | /// - multiCallback: Batch callback that receives all results at once
273 | func fetch(keys: [K], multiCallback: @escaping BatchResultCallback) {
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
274 | guard keys.count > 0 else {
275 | multiCallback([])
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:428:39: warning: capture of non-sendable type 'K.Type' in an isolated closure
426 | switch cache.getElement(for: key) {
427 | case .invalidKey:
428 | dispatchQueue.async { completion(key, .success(nil)) }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
429 | case .hitNullElement:
430 | dispatchQueue.async { completion(key, .success(nil)) }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:419:9: warning: capture of non-sendable type 'K.Type' in an isolated closure
417 | keys: [K],
418 | dispatchQueue: DispatchQueue? = nil,
419 | completion: @escaping ResultCallback
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
420 | ) {
421 | semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:430:39: warning: capture of non-sendable type 'K.Type' in an isolated closure
428 | dispatchQueue.async { completion(key, .success(nil)) }
429 | case .hitNullElement:
430 | dispatchQueue.async { completion(key, .success(nil)) }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
431 | case let .hitNonNullElement(element: element):
432 | dispatchQueue.async { completion(key, .success(element)) }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:419:9: warning: capture of non-sendable type 'K.Type' in an isolated closure
417 | keys: [K],
418 | dispatchQueue: DispatchQueue? = nil,
419 | completion: @escaping ResultCallback
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
420 | ) {
421 | semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:432:39: warning: capture of non-sendable type 'K.Type' in an isolated closure
430 | dispatchQueue.async { completion(key, .success(nil)) }
431 | case let .hitNonNullElement(element: element):
432 | dispatchQueue.async { completion(key, .success(element)) }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
433 | case .miss:
434 | remoteKeys.append(key)
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:419:9: warning: capture of non-sendable type 'K.Type' in an isolated closure
417 | keys: [K],
418 | dispatchQueue: DispatchQueue? = nil,
419 | completion: @escaping ResultCallback
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
420 | ) {
421 | semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:445:27: warning: capture of non-sendable type 'K.Type' in an isolated closure
443 | startTaskExecution(keys: _remoteKeys) { [weak self] key, res in
444 | DispatchQueue.global().async {
445 | guard let self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
446 | self.semaphore.wait()
447 | defer { self.semaphore.signal() }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:443:55: warning: capture of non-sendable type 'K.Type' in an isolated closure
441 | cacheResultCallback(keys: remoteKeys, callback: completion)
442 |
443 | startTaskExecution(keys: _remoteKeys) { [weak self] key, res in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
444 | DispatchQueue.global().async {
445 | guard let self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:468:35: warning: capture of non-sendable type 'K.Type' in an isolated closure
466 | private func consumeCallbacks(key: K, dispatchQueue: DispatchQueue, result: Result<Element?, Error>) {
467 | resultCallbacks[key]?.forEach { callback in
468 | dispatchQueue.async { callback(key, result) }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
469 | }
470 | resultCallbacks.removeValue(forKey: key)
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:467:41: warning: capture of non-sendable type 'K.Type' in an isolated closure
465 |
466 | private func consumeCallbacks(key: K, dispatchQueue: DispatchQueue, result: Result<Element?, Error>) {
467 | resultCallbacks[key]?.forEach { callback in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
468 | dispatchQueue.async { callback(key, result) }
469 | }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:550:23: warning: capture of non-sendable type 'K.Type' in an isolated closure
548 |
549 | DispatchQueue.global().async { [weak self] in
550 | guard let self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
551 |
552 | _executeMonoprovide(key: key, provide: provide) { [weak self] key, res in
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:549:46: warning: capture of non-sendable type 'K.Type' in an isolated closure
547 | }
548 |
549 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
550 | guard let self else { return }
551 |
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:554:31: warning: capture of non-sendable type 'K.Type' in an isolated closure
552 | _executeMonoprovide(key: key, provide: provide) { [weak self] key, res in
553 | DispatchQueue.global().async { [weak self] in
554 | guard let self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
555 | semaphore.wait()
556 | defer { semaphore.signal() }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:553:54: warning: capture of non-sendable type 'K.Type' in an isolated closure
551 |
552 | _executeMonoprovide(key: key, provide: provide) { [weak self] key, res in
553 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
554 | guard let self else { return }
555 | semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:592:23: warning: capture of non-sendable type 'K.Type' in an isolated closure
590 |
591 | DispatchQueue.global().async { [weak self] in
592 | guard let self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
593 | _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
594 | DispatchQueue.global().async { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:591:46: warning: capture of non-sendable type 'K.Type' in an isolated closure
589 | }
590 |
591 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
592 | guard let self else { return }
593 | _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:595:31: warning: capture of non-sendable type 'K.Type' in an isolated closure
593 | _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
594 | DispatchQueue.global().async { [weak self] in
595 | guard let self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
596 | semaphore.wait()
597 | defer { semaphore.signal() }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:594:54: warning: capture of non-sendable type 'K.Type' in an isolated closure
592 | guard let self else { return }
593 | _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
594 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
595 | guard let self else { return }
596 | semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:599:73: warning: capture of non-sendable type 'K.Type' in an isolated closure
597 | defer { semaphore.signal() }
598 | _startOneMultiprovideThread(batchCount: batchCount, provide: provide, callback: callback)
599 | res.forEach { res in DispatchQueue.global().async { callback(res.0, res.1) } }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
600 | }
601 | }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:573:9: warning: capture of non-sendable type 'K.Type' in an isolated closure
571 | batchCount: UInt,
572 | provide: @escaping DataProvider.Multiprovide,
573 | callback: @escaping ResultCallback
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
574 | ) {
575 | guard let keys else {
[11/16] Compiling Monstra KVLightTasksManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1011:54: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1009 | dataProviders[key] = DataProvider(key: key, customEventPublisher: { [weak self] customEvent in
1010 | // Handle custom events (progress updates, status changes, etc.)
1011 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1012 | guard let taskManager = self else { return }
1013 | taskManager.semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1009:87: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1007 | // Create new DataProvider instance if not already present (supports reuse from .reuse strategy)
1008 | if dataProviders[key] == nil {
1009 | dataProviders[key] = DataProvider(key: key, customEventPublisher: { [weak self] customEvent in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1010 | // Handle custom events (progress updates, status changes, etc.)
1011 | DispatchQueue.global().async { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1012:45: warning: capture of non-sendable type 'K.Type' in an isolated closure
1010 | // Handle custom events (progress updates, status changes, etc.)
1011 | DispatchQueue.global().async { [weak self] in
1012 | guard let taskManager = self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
1013 | taskManager.semaphore.wait()
1014 | defer { taskManager.semaphore.signal() }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1011:54: warning: capture of non-sendable type 'K.Type' in an isolated closure
1009 | dataProviders[key] = DataProvider(key: key, customEventPublisher: { [weak self] customEvent in
1010 | // Handle custom events (progress updates, status changes, etc.)
1011 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
1012 | guard let taskManager = self else { return }
1013 | taskManager.semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1025:54: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1023 | }, resultPublisher: { [weak self] result in
1024 | // Handle final task result (success or failure)
1025 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1026 | guard let taskManager = self else { return }
1027 | taskManager.semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1023:41: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1021 | }
1022 | }
1023 | }, resultPublisher: { [weak self] result in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
1024 | // Handle final task result (success or failure)
1025 | DispatchQueue.global().async { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1026:45: warning: capture of non-sendable type 'K.Type' in an isolated closure
1024 | // Handle final task result (success or failure)
1025 | DispatchQueue.global().async { [weak self] in
1026 | guard let taskManager = self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
1027 | taskManager.semaphore.wait()
1028 | defer { taskManager.semaphore.signal() }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1025:54: warning: capture of non-sendable type 'K.Type' in an isolated closure
1023 | }, resultPublisher: { [weak self] result in
1024 | // Handle final task result (success or failure)
1025 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
1026 | guard let taskManager = self else { return }
1027 | taskManager.semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:125:49: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
123 | Task {
124 | do {
125 | let res = try await asyncMonoprovide(key)
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
126 | callback(.success(res))
127 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:121:40: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
119 | case let .multiprovide(maximumBatchCount, multiprovide):
120 | privateDataProvider = .multiprovide(maximumBatchCount: maximumBatchCount, multiprovide)
121 | case let .asyncMonoprovide(asyncMonoprovide):
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
122 | privateDataProvider = .monoprovide { key, callback in
123 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:136:43: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
134 | Task {
135 | do {
136 | let res = try await asyncMultiprovide(keys)
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
137 | callback(.success(res))
138 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:132:60: warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
130 | }
131 | }
132 | case let .asyncMultiprovide(maximumBatchCount, asyncMultiprovide):
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure; this is an error in the Swift 6 language mode
133 | privateDataProvider = .multiprovide(maximumBatchCount: maximumBatchCount) { keys, callback in
134 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:290:21: warning: capture of non-sendable type 'K.Type' in an isolated closure
288 | let capturedResults = results
289 | DispatchQueue.global().async {
290 | multiCallback(
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
291 | keys.map { ($0, capturedResults[$0] ?? .success(nil)) }
292 | )
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:273:27: warning: capture of non-sendable type 'K.Type' in an isolated closure
271 | /// - keys: Array of keys to fetch (duplicates are allowed)
272 | /// - multiCallback: Batch callback that receives all results at once
273 | func fetch(keys: [K], multiCallback: @escaping BatchResultCallback) {
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
274 | guard keys.count > 0 else {
275 | multiCallback([])
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:428:39: warning: capture of non-sendable type 'K.Type' in an isolated closure
426 | switch cache.getElement(for: key) {
427 | case .invalidKey:
428 | dispatchQueue.async { completion(key, .success(nil)) }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
429 | case .hitNullElement:
430 | dispatchQueue.async { completion(key, .success(nil)) }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:419:9: warning: capture of non-sendable type 'K.Type' in an isolated closure
417 | keys: [K],
418 | dispatchQueue: DispatchQueue? = nil,
419 | completion: @escaping ResultCallback
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
420 | ) {
421 | semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:430:39: warning: capture of non-sendable type 'K.Type' in an isolated closure
428 | dispatchQueue.async { completion(key, .success(nil)) }
429 | case .hitNullElement:
430 | dispatchQueue.async { completion(key, .success(nil)) }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
431 | case let .hitNonNullElement(element: element):
432 | dispatchQueue.async { completion(key, .success(element)) }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:419:9: warning: capture of non-sendable type 'K.Type' in an isolated closure
417 | keys: [K],
418 | dispatchQueue: DispatchQueue? = nil,
419 | completion: @escaping ResultCallback
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
420 | ) {
421 | semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:432:39: warning: capture of non-sendable type 'K.Type' in an isolated closure
430 | dispatchQueue.async { completion(key, .success(nil)) }
431 | case let .hitNonNullElement(element: element):
432 | dispatchQueue.async { completion(key, .success(element)) }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
433 | case .miss:
434 | remoteKeys.append(key)
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:419:9: warning: capture of non-sendable type 'K.Type' in an isolated closure
417 | keys: [K],
418 | dispatchQueue: DispatchQueue? = nil,
419 | completion: @escaping ResultCallback
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
420 | ) {
421 | semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:445:27: warning: capture of non-sendable type 'K.Type' in an isolated closure
443 | startTaskExecution(keys: _remoteKeys) { [weak self] key, res in
444 | DispatchQueue.global().async {
445 | guard let self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
446 | self.semaphore.wait()
447 | defer { self.semaphore.signal() }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:443:55: warning: capture of non-sendable type 'K.Type' in an isolated closure
441 | cacheResultCallback(keys: remoteKeys, callback: completion)
442 |
443 | startTaskExecution(keys: _remoteKeys) { [weak self] key, res in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
444 | DispatchQueue.global().async {
445 | guard let self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:468:35: warning: capture of non-sendable type 'K.Type' in an isolated closure
466 | private func consumeCallbacks(key: K, dispatchQueue: DispatchQueue, result: Result<Element?, Error>) {
467 | resultCallbacks[key]?.forEach { callback in
468 | dispatchQueue.async { callback(key, result) }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
469 | }
470 | resultCallbacks.removeValue(forKey: key)
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:467:41: warning: capture of non-sendable type 'K.Type' in an isolated closure
465 |
466 | private func consumeCallbacks(key: K, dispatchQueue: DispatchQueue, result: Result<Element?, Error>) {
467 | resultCallbacks[key]?.forEach { callback in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
468 | dispatchQueue.async { callback(key, result) }
469 | }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:550:23: warning: capture of non-sendable type 'K.Type' in an isolated closure
548 |
549 | DispatchQueue.global().async { [weak self] in
550 | guard let self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
551 |
552 | _executeMonoprovide(key: key, provide: provide) { [weak self] key, res in
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:549:46: warning: capture of non-sendable type 'K.Type' in an isolated closure
547 | }
548 |
549 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
550 | guard let self else { return }
551 |
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:554:31: warning: capture of non-sendable type 'K.Type' in an isolated closure
552 | _executeMonoprovide(key: key, provide: provide) { [weak self] key, res in
553 | DispatchQueue.global().async { [weak self] in
554 | guard let self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
555 | semaphore.wait()
556 | defer { semaphore.signal() }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:553:54: warning: capture of non-sendable type 'K.Type' in an isolated closure
551 |
552 | _executeMonoprovide(key: key, provide: provide) { [weak self] key, res in
553 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
554 | guard let self else { return }
555 | semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:592:23: warning: capture of non-sendable type 'K.Type' in an isolated closure
590 |
591 | DispatchQueue.global().async { [weak self] in
592 | guard let self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
593 | _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
594 | DispatchQueue.global().async { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:591:46: warning: capture of non-sendable type 'K.Type' in an isolated closure
589 | }
590 |
591 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
592 | guard let self else { return }
593 | _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:595:31: warning: capture of non-sendable type 'K.Type' in an isolated closure
593 | _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
594 | DispatchQueue.global().async { [weak self] in
595 | guard let self else { return }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
596 | semaphore.wait()
597 | defer { semaphore.signal() }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:594:54: warning: capture of non-sendable type 'K.Type' in an isolated closure
592 | guard let self else { return }
593 | _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
594 | DispatchQueue.global().async { [weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
595 | guard let self else { return }
596 | semaphore.wait()
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:599:73: warning: capture of non-sendable type 'K.Type' in an isolated closure
597 | defer { semaphore.signal() }
598 | _startOneMultiprovideThread(batchCount: batchCount, provide: provide, callback: callback)
599 | res.forEach { res in DispatchQueue.global().async { callback(res.0, res.1) } }
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
600 | }
601 | }
/Users/admin/builder/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:573:9: warning: capture of non-sendable type 'K.Type' in an isolated closure
571 | batchCount: UInt,
572 | provide: @escaping DataProvider.Multiprovide,
573 | callback: @escaping ResultCallback
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
574 | ) {
575 | guard let keys else {
[12/16] Compiling Monstra CacheStatistics.swift
[13/16] Compiling Monstra MonoTask.swift
[14/16] Compiling Monstra MemoryCache.swift
[15/16] Compiling Monstra RetryCount.swift
[16/16] Compiling Monstra HashQueue.swift
Build complete! (4.87s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/Monstore/MemoryCache/README.md
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Monstra",
"name" : "Monstra",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "Monstra",
"targets" : [
"Monstra"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MonstraBaseTests",
"module_type" : "SwiftTarget",
"name" : "MonstraBaseTests",
"path" : "Tests/MonstraBaseTests",
"sources" : [
"CPUTimeStampPerformanceTests.swift",
"CPUTimeStampTests.swift",
"DoublyLinkTests.swift",
"HashQueueTests.swift",
"HeapPerformanceTests.swift",
"HeapTests.swift",
"RetryCountTests.swift",
"TracingIDFactoryTest.swift"
],
"target_dependencies" : [
"Monstra"
],
"type" : "test"
},
{
"c99name" : "Monstra",
"module_type" : "SwiftTarget",
"name" : "Monstra",
"path" : "Sources",
"product_memberships" : [
"Monstra"
],
"sources" : [
"Monstask/KVHeavyTasksManager.swift",
"Monstask/KVLightTasksManager.swift",
"Monstask/MonoTask.swift",
"Monstore/MemoryCache/MemoryCache.swift",
"Monstore/MemoryCache/PriorityLRUQueue.swift",
"Monstore/MemoryCache/TTLPriorityLRUQueue.swift",
"Monstore/Statistics/CacheStatistics.swift",
"MonstraBase/CPUTimeStamp.swift",
"MonstraBase/DoublyLink.swift",
"MonstraBase/HashQueue.swift",
"MonstraBase/Heap.swift",
"MonstraBase/RetryCount.swift",
"MonstraBase/TracingIDFactory.swift"
],
"type" : "library"
},
{
"c99name" : "MonstoreTests",
"module_type" : "SwiftTarget",
"name" : "MonstoreTests",
"path" : "Tests/MonstoreTests",
"sources" : [
"MemoryCache/FeatureTest/MemoryCacheTests.swift",
"MemoryCache/FeatureTest/PriorityLRUQueueTests.swift",
"MemoryCache/FeatureTest/TTLPriorityLRUQueueTests.swift",
"MemoryCache/PerformanceTest/MemoryCachePerformanceTests.swift",
"MemoryCache/PerformanceTest/PriorityLRUQueuePerformanceTests.swift",
"MemoryCache/PerformanceTest/TTLPriorityLRUQueuePerformanceTests.swift",
"Statistics/CacheStatisticsTests.swift"
],
"target_dependencies" : [
"Monstra"
],
"type" : "test"
},
{
"c99name" : "MonstaskTests",
"module_type" : "SwiftTarget",
"name" : "MonstaskTests",
"path" : "Tests/MonstaskTests",
"sources" : [
"KVHeavyTasksManagerTests.swift",
"KVLightTasksManagerTests.swift",
"MonoTaskClearResultTests.swift",
"MonoTaskCrossScenarioTests.swift",
"MonoTaskForceUpdateTests.swift",
"MonoTaskTests.swift"
],
"target_dependencies" : [
"Monstra"
],
"type" : "test"
}
],
"tools_version" : "5.5"
}
Done.