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:
Max DesiatovandFranz Busch authored and GitHub committed 2024-09-12 13:18:25 +01:00
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