mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Add support for WASILibc (#2671)
Dispatch is not supported on WASI, and only Unix domain sockets are supported, which means we have to exclude those APIs on this platform. There's work in progress to enable tests for this on CI, but nothing I can provide for this PR at the current moment. --------- Co-authored-by: Franz Busch <f.busch@apple.com>
This commit is contained in:
1 parent
a26c6dc55c
commit
730713e47f
34 files changed
+280
-48
No files matched your search
@@ -12,6 +12,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if canImport(Dispatch)
|
||||
import Atomics
|
||||
import Dispatch
|
||||
import NIOConcurrencyHelpers
|
||||
@@ -405,3 +406,4 @@ private class PromiseCreationStore {
|
||||
precondition(self.promiseCreationStore.isEmpty, "NIOAsyncTestingEventLoop freed with uncompleted promises!")
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user