Build Information
Successful build of EventDrivenSwift, reference 5.2.0 (951b5c
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 04:00:58 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Flowduino/EventDrivenSwift.git
Reference: 5.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Flowduino/EventDrivenSwift
* tag 5.2.0 -> FETCH_HEAD
HEAD is now at 951b5c8 Merge pull request #7 from Flowduino/custom-event-filtering
Cloned https://github.com/Flowduino/EventDrivenSwift.git
Revision (git rev-parse @):
951b5c841868987a6d4f7977694d74eb72e7c96a
SUCCESS checkout https://github.com/Flowduino/EventDrivenSwift.git at 5.2.0
Fetching https://github.com/Flowduino/Observable.git
Fetching https://github.com/Flowduino/ThreadSafeSwift.git
[1/53] Fetching threadsafeswift
[2/169] Fetching threadsafeswift, observable
Fetched https://github.com/Flowduino/Observable.git from cache (0.61s)
Fetched https://github.com/Flowduino/ThreadSafeSwift.git from cache (0.61s)
Computing version for https://github.com/Flowduino/Observable.git
Computed https://github.com/Flowduino/Observable.git at 2.0.0 (1.26s)
Computing version for https://github.com/Flowduino/ThreadSafeSwift.git
Computed https://github.com/Flowduino/ThreadSafeSwift.git at 1.1.0 (0.62s)
Creating working copy for https://github.com/Flowduino/Observable.git
Working copy of https://github.com/Flowduino/Observable.git resolved at 2.0.0
Creating working copy for https://github.com/Flowduino/ThreadSafeSwift.git
Working copy of https://github.com/Flowduino/ThreadSafeSwift.git resolved at 1.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "eventdrivenswift",
"name": "EventDrivenSwift",
"url": "https://github.com/Flowduino/EventDrivenSwift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EventDrivenSwift",
"dependencies": [
{
"identity": "threadsafeswift",
"name": "ThreadSafeSwift",
"url": "https://github.com/Flowduino/ThreadSafeSwift.git",
"version": "1.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ThreadSafeSwift",
"dependencies": [
]
},
{
"identity": "observable",
"name": "Observable",
"url": "https://github.com/Flowduino/Observable.git",
"version": "2.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Observable",
"dependencies": [
{
"identity": "threadsafeswift",
"name": "ThreadSafeSwift",
"url": "https://github.com/Flowduino/ThreadSafeSwift.git",
"version": "1.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ThreadSafeSwift",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/Flowduino/EventDrivenSwift.git
[1/620] Fetching eventdrivenswift
Fetched https://github.com/Flowduino/EventDrivenSwift.git from cache (0.97s)
Fetching https://github.com/Flowduino/Observable.git from cache
Fetching https://github.com/Flowduino/ThreadSafeSwift.git from cache
Fetched https://github.com/Flowduino/ThreadSafeSwift.git from cache (0.45s)
Fetched https://github.com/Flowduino/Observable.git from cache (0.45s)
Computing version for https://github.com/Flowduino/Observable.git
Computed https://github.com/Flowduino/Observable.git at 2.0.0 (0.50s)
Computing version for https://github.com/Flowduino/ThreadSafeSwift.git
Computed https://github.com/Flowduino/ThreadSafeSwift.git at 1.1.0 (0.03s)
Creating working copy for https://github.com/Flowduino/Observable.git
Working copy of https://github.com/Flowduino/Observable.git resolved at 2.0.0
Creating working copy for https://github.com/Flowduino/EventDrivenSwift.git
Working copy of https://github.com/Flowduino/EventDrivenSwift.git resolved at 5.2.0 (951b5c8)
Creating working copy for https://github.com/Flowduino/ThreadSafeSwift.git
Working copy of https://github.com/Flowduino/ThreadSafeSwift.git resolved at 1.1.0
warning: '.resolve-product-dependencies': dependency 'eventdrivenswift' is not used by any target
Found 2 product dependencies
- ThreadSafeSwift
- Observable
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Flowduino/EventDrivenSwift.git
https://github.com/Flowduino/EventDrivenSwift.git
{
"dependencies" : [
{
"identity" : "threadsafeswift",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Flowduino/ThreadSafeSwift.git"
},
{
"identity" : "observable",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Flowduino/Observable.git"
}
],
"manifest_display_name" : "EventDrivenSwift",
"name" : "EventDrivenSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "EventDrivenSwift",
"targets" : [
"EventDrivenSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EventDrivenSwiftTests",
"module_type" : "SwiftTarget",
"name" : "EventDrivenSwiftTests",
"path" : "Tests/EventDrivenSwiftTests",
"product_dependencies" : [
"ThreadSafeSwift",
"Observable"
],
"sources" : [
"BasicEventListenerTests.swift",
"BasicEventPoolTests.swift",
"BasicEventSchedulingTests.swift",
"BasicEventThreadTests.swift"
],
"target_dependencies" : [
"EventDrivenSwift"
],
"type" : "test"
},
{
"c99name" : "EventDrivenSwift",
"module_type" : "SwiftTarget",
"name" : "EventDrivenSwift",
"path" : "Sources/EventDrivenSwift",
"product_dependencies" : [
"ThreadSafeSwift",
"Observable"
],
"product_memberships" : [
"EventDrivenSwift"
],
"sources" : [
"Central/EventCentral.swift",
"Central/EventCentralable.swift",
"Event/EventDispatchMethod.swift",
"Event/EventPriority.swift",
"Event/Eventable.swift",
"Event/Wrappers/EventListeners.swift",
"Event/Wrappers/EventMethod.swift",
"EventDispatcher/EventDispatcher.swift",
"EventDispatcher/EventDispatching.swift",
"EventHandler/EventHandler.swift",
"EventHandler/EventHandling.swift",
"EventListener/EventListenable.swift",
"EventListener/EventListener.swift",
"EventListener/EventListenerInterest.swift",
"EventListener/EventListening.swift",
"EventListener/Handler/EventListenerHandler.swift",
"EventListener/Handler/EventListenerHandling.swift",
"EventPool/EventPool.swift",
"EventPool/EventPoolBalancer/Balancers/EventPoolLowestLoadBalancer.swift",
"EventPool/EventPoolBalancer/Balancers/EventPoolRoundRobinBalancer.swift",
"EventPool/EventPoolBalancer/EventPoolBalancer.swift",
"EventPool/EventPoolBalancer/EventPoolBalancing.swift",
"EventPool/EventPoolScaler/EventPoolScaler.swift",
"EventPool/EventPoolScaler/EventPoolScaling.swift",
"EventPool/EventPoolScaler/Scalers/EventPoolStaticScaler.swift",
"EventPool/EventPooling.swift",
"EventReceiver/EventReceiver.swift",
"EventReceiver/EventReceiving.swift",
"EventThread/EventThread.swift",
"EventThread/EventThreadable.swift",
"UIEventThread/UIEventThread.swift",
"UIEventThread/UIEventThreadable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/6] Compiling ThreadSafeSwift ThreadSafeSemaphore.swift
[6/6] Emitting module ThreadSafeSwift
[7/15] Compiling Observable KeyedObservableThread.swift
[8/15] Compiling Observable KeyedObservableClass.swift
[9/15] Compiling Observable ObservableThread.swift
[10/15] Compiling Observable ObservableThreadSafeClass.swift
[11/15] Compiling Observable ObservableClass.swift
[12/15] Compiling Observable Observable.swift
[13/15] Compiling Observable KeyedObservableThreadSafeClass.swift
[14/15] Emitting module Observable
[15/15] Compiling Observable KeyedObservable.swift
[16/45] Emitting module EventDrivenSwift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Central/EventCentral.swift:25:24: warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | - Version: 1.0.0
24 | */
25 | private static var _shared: EventCentral = EventCentral()
| |- warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /**
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Event/EventPriority.swift:29:23: warning: static property 'inOrder' is not concurrency-safe because non-'Sendable' type 'ReversedCollection<[EventPriority]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | - Version: 1.0.0
15 | */
16 | public enum EventPriority: CaseIterable {
| `- note: consider making enum 'EventPriority' conform to the 'Sendable' protocol
17 | case lowest
18 | case low
:
27 | - Note: This is necessary because we always process Events in priority-order from `highest` to `lowest`
28 | */
29 | public static let inOrder = Self.allCases.reversed()
| |- warning: static property 'inOrder' is not concurrency-safe because non-'Sendable' type 'ReversedCollection<[EventPriority]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inOrder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:19:24: warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | */
18 | open class UIEventThread: EventThread, UIEventThreadable {
19 | private static var _shared: UIEventThreadable? = nil
| |- warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static var shared: UIEventThreadable {
[17/48] Compiling EventDrivenSwift EventCentral.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Central/EventCentral.swift:25:24: warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | - Version: 1.0.0
24 | */
25 | private static var _shared: EventCentral = EventCentral()
| |- warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /**
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Event/EventPriority.swift:29:23: warning: static property 'inOrder' is not concurrency-safe because non-'Sendable' type 'ReversedCollection<[EventPriority]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | - Version: 1.0.0
15 | */
16 | public enum EventPriority: CaseIterable {
| `- note: consider making enum 'EventPriority' conform to the 'Sendable' protocol
17 | case lowest
18 | case low
:
27 | - Note: This is necessary because we always process Events in priority-order from `highest` to `lowest`
28 | */
29 | public static let inOrder = Self.allCases.reversed()
| |- warning: static property 'inOrder' is not concurrency-safe because non-'Sendable' type 'ReversedCollection<[EventPriority]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inOrder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | }
31 |
[18/48] Compiling EventDrivenSwift EventCentralable.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Central/EventCentral.swift:25:24: warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | - Version: 1.0.0
24 | */
25 | private static var _shared: EventCentral = EventCentral()
| |- warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /**
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Event/EventPriority.swift:29:23: warning: static property 'inOrder' is not concurrency-safe because non-'Sendable' type 'ReversedCollection<[EventPriority]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | - Version: 1.0.0
15 | */
16 | public enum EventPriority: CaseIterable {
| `- note: consider making enum 'EventPriority' conform to the 'Sendable' protocol
17 | case lowest
18 | case low
:
27 | - Note: This is necessary because we always process Events in priority-order from `highest` to `lowest`
28 | */
29 | public static let inOrder = Self.allCases.reversed()
| |- warning: static property 'inOrder' is not concurrency-safe because non-'Sendable' type 'ReversedCollection<[EventPriority]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inOrder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | }
31 |
[19/48] Compiling EventDrivenSwift EventDispatchMethod.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Central/EventCentral.swift:25:24: warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | - Version: 1.0.0
24 | */
25 | private static var _shared: EventCentral = EventCentral()
| |- warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /**
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Event/EventPriority.swift:29:23: warning: static property 'inOrder' is not concurrency-safe because non-'Sendable' type 'ReversedCollection<[EventPriority]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | - Version: 1.0.0
15 | */
16 | public enum EventPriority: CaseIterable {
| `- note: consider making enum 'EventPriority' conform to the 'Sendable' protocol
17 | case lowest
18 | case low
:
27 | - Note: This is necessary because we always process Events in priority-order from `highest` to `lowest`
28 | */
29 | public static let inOrder = Self.allCases.reversed()
| |- warning: static property 'inOrder' is not concurrency-safe because non-'Sendable' type 'ReversedCollection<[EventPriority]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inOrder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | }
31 |
[20/48] Compiling EventDrivenSwift EventPriority.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Central/EventCentral.swift:25:24: warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | - Version: 1.0.0
24 | */
25 | private static var _shared: EventCentral = EventCentral()
| |- warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /**
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Event/EventPriority.swift:29:23: warning: static property 'inOrder' is not concurrency-safe because non-'Sendable' type 'ReversedCollection<[EventPriority]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | - Version: 1.0.0
15 | */
16 | public enum EventPriority: CaseIterable {
| `- note: consider making enum 'EventPriority' conform to the 'Sendable' protocol
17 | case lowest
18 | case low
:
27 | - Note: This is necessary because we always process Events in priority-order from `highest` to `lowest`
28 | */
29 | public static let inOrder = Self.allCases.reversed()
| |- warning: static property 'inOrder' is not concurrency-safe because non-'Sendable' type 'ReversedCollection<[EventPriority]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inOrder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | }
31 |
[21/48] Compiling EventDrivenSwift EventPoolScaling.swift
[22/48] Compiling EventDrivenSwift EventPoolStaticScaler.swift
[23/48] Compiling EventDrivenSwift EventPooling.swift
[24/48] Compiling EventDrivenSwift Eventable.swift
[25/48] Compiling EventDrivenSwift EventListeners.swift
[26/48] Compiling EventDrivenSwift EventMethod.swift
[27/48] Compiling EventDrivenSwift EventDispatcher.swift
[28/48] Compiling EventDrivenSwift EventThreadable.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:19:24: warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | */
18 | open class UIEventThread: EventThread, UIEventThreadable {
19 | private static var _shared: UIEventThreadable? = nil
| |- warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static var shared: UIEventThreadable {
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:29:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
27 |
28 | override open func callTypedEventCallback<TEvent: Eventable>(_ callback: @escaping TypedEventCallback<TEvent>, forEvent: Eventable, priority: EventPriority, dispatchTime: DispatchTime) {
29 | Task { /// Have to use a Task because this method is not `async`
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| `- note: closure captures 'self' which is accessible to code in the current task
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:46: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:66: warning: sending 'forEvent' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'forEvent' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'forEvent' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:86: warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'priority' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
[29/48] Compiling EventDrivenSwift UIEventThread.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:19:24: warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | */
18 | open class UIEventThread: EventThread, UIEventThreadable {
19 | private static var _shared: UIEventThreadable? = nil
| |- warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static var shared: UIEventThreadable {
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:29:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
27 |
28 | override open func callTypedEventCallback<TEvent: Eventable>(_ callback: @escaping TypedEventCallback<TEvent>, forEvent: Eventable, priority: EventPriority, dispatchTime: DispatchTime) {
29 | Task { /// Have to use a Task because this method is not `async`
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| `- note: closure captures 'self' which is accessible to code in the current task
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:46: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:66: warning: sending 'forEvent' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'forEvent' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'forEvent' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:86: warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'priority' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
[30/48] Compiling EventDrivenSwift UIEventThreadable.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:19:24: warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | */
18 | open class UIEventThread: EventThread, UIEventThreadable {
19 | private static var _shared: UIEventThreadable? = nil
| |- warning: static property '_shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static var shared: UIEventThreadable {
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:29:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
27 |
28 | override open func callTypedEventCallback<TEvent: Eventable>(_ callback: @escaping TypedEventCallback<TEvent>, forEvent: Eventable, priority: EventPriority, dispatchTime: DispatchTime) {
29 | Task { /// Have to use a Task because this method is not `async`
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| `- note: closure captures 'self' which is accessible to code in the current task
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:46: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:66: warning: sending 'forEvent' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'forEvent' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'forEvent' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/UIEventThread/UIEventThread.swift:31:86: warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
29 | Task { /// Have to use a Task because this method is not `async`
30 | await MainActor.run { /// Forces the call to be invoked on the `MainActor` (UI Thread)
31 | super.callTypedEventCallback(callback, forEvent: forEvent, priority: priority, dispatchTime: dispatchTime)
| |- warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'priority' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
[31/48] Compiling EventDrivenSwift EventPoolBalancer.swift
[32/48] Compiling EventDrivenSwift EventPoolBalancing.swift
[33/48] Compiling EventDrivenSwift EventPoolScaler.swift
[34/48] Compiling EventDrivenSwift EventListenable.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:84:25: warning: capture of 'listener' with non-sendable type 'EventListener.EventListenerContainer' in a '@Sendable' closure
27 | - Version: 3.0.0
28 | */
29 | public struct EventListenerContainer {
| `- note: consider making struct 'EventListenerContainer' conform to the 'Sendable' protocol
30 | var token: UUID = UUID() // Randomly-generated
31 | weak var requester: AnyObject?
:
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| `- warning: capture of 'listener' with non-sendable type 'EventListener.EventListenerContainer' in a '@Sendable' closure
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:84:43: warning: capture of 'event' with non-sendable type 'EventHandler.EventDispatchContainer' in a '@Sendable' closure
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| `- warning: capture of 'event' with non-sendable type 'EventHandler.EventDispatchContainer' in a '@Sendable' closure
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:30:19: note: consider making struct 'EventDispatchContainer' conform to the 'Sendable' protocol
28 | - Note: This was added principally to support Latest-Only Event Listeners/Callbacks
29 | */
30 | public struct EventDispatchContainer {
| `- note: consider making struct 'EventDispatchContainer' conform to the 'Sendable' protocol
31 | var event: any Eventable
32 | var dispatchTime: DispatchTime = DispatchTime.now()
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:84:56: warning: capture of 'priority' with non-sendable type 'EventPriority' in a '@Sendable' closure
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| `- warning: capture of 'priority' with non-sendable type 'EventPriority' in a '@Sendable' closure
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Event/EventPriority.swift:16:13: note: consider making enum 'EventPriority' conform to the 'Sendable' protocol
14 | - Version: 1.0.0
15 | */
16 | public enum EventPriority: CaseIterable {
| `- note: consider making enum 'EventPriority' conform to the 'Sendable' protocol
17 | case lowest
18 | case low
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:81:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
79 | switch listener.executeOn {
80 | case .requesterThread:
81 | Task { // We raise a Task because we don't want the entire Listener blocked in the event the dispatchQueue is busy or blocked!
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
| `- note: closure captures non-Sendable 'listener'
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| | `- note: closure captures non-Sendable 'priority'
| `- note: closure captures non-Sendable 'event'
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:90:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 | listener.callback(event.event, priority, event.dispatchTime)
89 | case .taskThread:
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | listener.callback(event.event, priority, event.dispatchTime)
| | | `- note: closure captures non-Sendable 'priority'
| | `- note: closure captures non-Sendable 'event'
| `- note: closure captures non-Sendable 'listener'
92 | }
93 | }
[35/48] Compiling EventDrivenSwift EventListener.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:84:25: warning: capture of 'listener' with non-sendable type 'EventListener.EventListenerContainer' in a '@Sendable' closure
27 | - Version: 3.0.0
28 | */
29 | public struct EventListenerContainer {
| `- note: consider making struct 'EventListenerContainer' conform to the 'Sendable' protocol
30 | var token: UUID = UUID() // Randomly-generated
31 | weak var requester: AnyObject?
:
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| `- warning: capture of 'listener' with non-sendable type 'EventListener.EventListenerContainer' in a '@Sendable' closure
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:84:43: warning: capture of 'event' with non-sendable type 'EventHandler.EventDispatchContainer' in a '@Sendable' closure
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| `- warning: capture of 'event' with non-sendable type 'EventHandler.EventDispatchContainer' in a '@Sendable' closure
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:30:19: note: consider making struct 'EventDispatchContainer' conform to the 'Sendable' protocol
28 | - Note: This was added principally to support Latest-Only Event Listeners/Callbacks
29 | */
30 | public struct EventDispatchContainer {
| `- note: consider making struct 'EventDispatchContainer' conform to the 'Sendable' protocol
31 | var event: any Eventable
32 | var dispatchTime: DispatchTime = DispatchTime.now()
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:84:56: warning: capture of 'priority' with non-sendable type 'EventPriority' in a '@Sendable' closure
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| `- warning: capture of 'priority' with non-sendable type 'EventPriority' in a '@Sendable' closure
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Event/EventPriority.swift:16:13: note: consider making enum 'EventPriority' conform to the 'Sendable' protocol
14 | - Version: 1.0.0
15 | */
16 | public enum EventPriority: CaseIterable {
| `- note: consider making enum 'EventPriority' conform to the 'Sendable' protocol
17 | case lowest
18 | case low
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:81:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
79 | switch listener.executeOn {
80 | case .requesterThread:
81 | Task { // We raise a Task because we don't want the entire Listener blocked in the event the dispatchQueue is busy or blocked!
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
| `- note: closure captures non-Sendable 'listener'
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| | `- note: closure captures non-Sendable 'priority'
| `- note: closure captures non-Sendable 'event'
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:90:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 | listener.callback(event.event, priority, event.dispatchTime)
89 | case .taskThread:
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | listener.callback(event.event, priority, event.dispatchTime)
| | | `- note: closure captures non-Sendable 'priority'
| | `- note: closure captures non-Sendable 'event'
| `- note: closure captures non-Sendable 'listener'
92 | }
93 | }
[36/48] Compiling EventDrivenSwift EventListenerInterest.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:84:25: warning: capture of 'listener' with non-sendable type 'EventListener.EventListenerContainer' in a '@Sendable' closure
27 | - Version: 3.0.0
28 | */
29 | public struct EventListenerContainer {
| `- note: consider making struct 'EventListenerContainer' conform to the 'Sendable' protocol
30 | var token: UUID = UUID() // Randomly-generated
31 | weak var requester: AnyObject?
:
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| `- warning: capture of 'listener' with non-sendable type 'EventListener.EventListenerContainer' in a '@Sendable' closure
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:84:43: warning: capture of 'event' with non-sendable type 'EventHandler.EventDispatchContainer' in a '@Sendable' closure
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| `- warning: capture of 'event' with non-sendable type 'EventHandler.EventDispatchContainer' in a '@Sendable' closure
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:30:19: note: consider making struct 'EventDispatchContainer' conform to the 'Sendable' protocol
28 | - Note: This was added principally to support Latest-Only Event Listeners/Callbacks
29 | */
30 | public struct EventDispatchContainer {
| `- note: consider making struct 'EventDispatchContainer' conform to the 'Sendable' protocol
31 | var event: any Eventable
32 | var dispatchTime: DispatchTime = DispatchTime.now()
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:84:56: warning: capture of 'priority' with non-sendable type 'EventPriority' in a '@Sendable' closure
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| `- warning: capture of 'priority' with non-sendable type 'EventPriority' in a '@Sendable' closure
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/Event/EventPriority.swift:16:13: note: consider making enum 'EventPriority' conform to the 'Sendable' protocol
14 | - Version: 1.0.0
15 | */
16 | public enum EventPriority: CaseIterable {
| `- note: consider making enum 'EventPriority' conform to the 'Sendable' protocol
17 | case lowest
18 | case low
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:81:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
79 | switch listener.executeOn {
80 | case .requesterThread:
81 | Task { // We raise a Task because we don't want the entire Listener blocked in the event the dispatchQueue is busy or blocked!
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
82 | let dispatchQueue = listener.dispatchQueue ?? DispatchQueue.main
| `- note: closure captures non-Sendable 'listener'
83 | dispatchQueue.async {
84 | listener.callback(event.event, priority, event.dispatchTime)
| | `- note: closure captures non-Sendable 'priority'
| `- note: closure captures non-Sendable 'event'
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventListener/EventListener.swift:90:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 | listener.callback(event.event, priority, event.dispatchTime)
89 | case .taskThread:
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | listener.callback(event.event, priority, event.dispatchTime)
| | | `- note: closure captures non-Sendable 'priority'
| | `- note: closure captures non-Sendable 'event'
| `- note: closure captures non-Sendable 'listener'
92 | }
93 | }
[37/48] Compiling EventDrivenSwift EventDispatching.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:135:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
133 |
134 | public func scheduleQueue(_ event: any Eventable, at: DispatchTime, priority: EventPriority) {
135 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| `- note: closure captures 'self' which is accessible to code in the current task
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:137:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
135 | Task {
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:137:33: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
135 | Task {
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:137:50: warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
135 | Task {
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| |- warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'priority' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:143:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
141 |
142 | public func scheduleStack(_ event: any Eventable, at: DispatchTime, priority: EventPriority) {
143 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| `- note: closure captures 'self' which is accessible to code in the current task
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:145:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
143 | Task {
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:145:33: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
143 | Task {
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:145:50: warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
143 | Task {
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| |- warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'priority' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | }
147 | }
[38/48] Compiling EventDrivenSwift EventHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:135:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
133 |
134 | public func scheduleQueue(_ event: any Eventable, at: DispatchTime, priority: EventPriority) {
135 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| `- note: closure captures 'self' which is accessible to code in the current task
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:137:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
135 | Task {
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:137:33: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
135 | Task {
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:137:50: warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
135 | Task {
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| |- warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'priority' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:143:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
141 |
142 | public func scheduleStack(_ event: any Eventable, at: DispatchTime, priority: EventPriority) {
143 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| `- note: closure captures 'self' which is accessible to code in the current task
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:145:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
143 | Task {
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:145:33: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
143 | Task {
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:145:50: warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
143 | Task {
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| |- warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'priority' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | }
147 | }
[39/48] Compiling EventDrivenSwift EventHandling.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:135:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
133 |
134 | public func scheduleQueue(_ event: any Eventable, at: DispatchTime, priority: EventPriority) {
135 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| `- note: closure captures 'self' which is accessible to code in the current task
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:137:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
135 | Task {
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:137:33: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
135 | Task {
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:137:50: warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
135 | Task {
136 | DispatchQueue.main.asyncAfter(deadline: at) {
137 | self.queueEvent(event, priority: priority)
| |- warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'priority' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:143:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
141 |
142 | public func scheduleStack(_ event: any Eventable, at: DispatchTime, priority: EventPriority) {
143 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| `- note: closure captures 'self' which is accessible to code in the current task
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:145:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
143 | Task {
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:145:33: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
143 | Task {
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventDrivenSwift/EventHandler/EventHandler.swift:145:50: warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
143 | Task {
144 | DispatchQueue.main.asyncAfter(deadline: at) {
145 | self.stackEvent(event, priority: priority)
| |- warning: sending 'priority' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'priority' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | }
147 | }
[40/48] Compiling EventDrivenSwift EventReceiver.swift
[41/48] Compiling EventDrivenSwift EventReceiving.swift
[42/48] Compiling EventDrivenSwift EventThread.swift
[43/48] Compiling EventDrivenSwift EventPool.swift
[44/48] Compiling EventDrivenSwift EventPoolLowestLoadBalancer.swift
[45/48] Compiling EventDrivenSwift EventPoolRoundRobinBalancer.swift
[46/48] Compiling EventDrivenSwift EventListening.swift
[47/48] Compiling EventDrivenSwift EventListenerHandler.swift
[48/48] Compiling EventDrivenSwift EventListenerHandling.swift
Build complete! (8.52s)
Build complete.
{
"dependencies" : [
{
"identity" : "threadsafeswift",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Flowduino/ThreadSafeSwift.git"
},
{
"identity" : "observable",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Flowduino/Observable.git"
}
],
"manifest_display_name" : "EventDrivenSwift",
"name" : "EventDrivenSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "EventDrivenSwift",
"targets" : [
"EventDrivenSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EventDrivenSwiftTests",
"module_type" : "SwiftTarget",
"name" : "EventDrivenSwiftTests",
"path" : "Tests/EventDrivenSwiftTests",
"product_dependencies" : [
"ThreadSafeSwift",
"Observable"
],
"sources" : [
"BasicEventListenerTests.swift",
"BasicEventPoolTests.swift",
"BasicEventSchedulingTests.swift",
"BasicEventThreadTests.swift"
],
"target_dependencies" : [
"EventDrivenSwift"
],
"type" : "test"
},
{
"c99name" : "EventDrivenSwift",
"module_type" : "SwiftTarget",
"name" : "EventDrivenSwift",
"path" : "Sources/EventDrivenSwift",
"product_dependencies" : [
"ThreadSafeSwift",
"Observable"
],
"product_memberships" : [
"EventDrivenSwift"
],
"sources" : [
"Central/EventCentral.swift",
"Central/EventCentralable.swift",
"Event/EventDispatchMethod.swift",
"Event/EventPriority.swift",
"Event/Eventable.swift",
"Event/Wrappers/EventListeners.swift",
"Event/Wrappers/EventMethod.swift",
"EventDispatcher/EventDispatcher.swift",
"EventDispatcher/EventDispatching.swift",
"EventHandler/EventHandler.swift",
"EventHandler/EventHandling.swift",
"EventListener/EventListenable.swift",
"EventListener/EventListener.swift",
"EventListener/EventListenerInterest.swift",
"EventListener/EventListening.swift",
"EventListener/Handler/EventListenerHandler.swift",
"EventListener/Handler/EventListenerHandling.swift",
"EventPool/EventPool.swift",
"EventPool/EventPoolBalancer/Balancers/EventPoolLowestLoadBalancer.swift",
"EventPool/EventPoolBalancer/Balancers/EventPoolRoundRobinBalancer.swift",
"EventPool/EventPoolBalancer/EventPoolBalancer.swift",
"EventPool/EventPoolBalancer/EventPoolBalancing.swift",
"EventPool/EventPoolScaler/EventPoolScaler.swift",
"EventPool/EventPoolScaler/EventPoolScaling.swift",
"EventPool/EventPoolScaler/Scalers/EventPoolStaticScaler.swift",
"EventPool/EventPooling.swift",
"EventReceiver/EventReceiver.swift",
"EventReceiver/EventReceiving.swift",
"EventThread/EventThread.swift",
"EventThread/EventThreadable.swift",
"UIEventThread/UIEventThread.swift",
"UIEventThread/UIEventThreadable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.