Skip to content

Commit 3bf9c1b

Browse files
authored
[Windows] fatalError concurrency takeover (#3347)
To make further progress, let's disable the concurrency takeover feature for now.
1 parent 93102a8 commit 3bf9c1b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/NIOPosix/PosixSingletons+ConcurrencyTakeOver.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ extension NIOSingletons {
3737
///
3838
/// - warning: You may only call this method from the main thread.
3939
/// - warning: You may only call this method once.
40+
/// - warning: This method is currently unimplemented on Windows and will crash.
4041
@discardableResult
4142
public static func unsafeTryInstallSingletonPosixEventLoopGroupAsConcurrencyGlobalExecutor() -> Bool {
43+
#if os(Windows)
44+
fatalError("TODO: Unimplemented in Windows")
45+
#else
4246
// Guard between the minimum and maximum supported version for the hook
4347
#if compiler(>=5.9) && compiler(<6.3)
4448
guard #available(macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0, *) else {
@@ -122,6 +126,7 @@ extension NIOSingletons {
122126
#else
123127
return false
124128
#endif
129+
#endif // windows unimplemented
125130
}
126131
}
127132

0 commit comments

Comments
 (0)