From 4435488166c82d95ced1cb6abca1cc97f02b9e66 Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Mon, 16 Dec 2024 15:07:08 +0000 Subject: [PATCH] Work around inconsistent concurrency annotations in Dispatch --- Sources/NIOEmbedded/AsyncTestingEventLoop.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/NIOEmbedded/AsyncTestingEventLoop.swift b/Sources/NIOEmbedded/AsyncTestingEventLoop.swift index c312e23002..6352495df3 100644 --- a/Sources/NIOEmbedded/AsyncTestingEventLoop.swift +++ b/Sources/NIOEmbedded/AsyncTestingEventLoop.swift @@ -14,7 +14,12 @@ #if canImport(Dispatch) import Atomics + +#if canImport(Darwin) import Dispatch +#else +@preconcurrency import Dispatch +#endif import NIOConcurrencyHelpers import NIOCore import _NIODataStructures