This example shows how to use the MultiThreadedEventLoopGroup. To allow easy running on both macOS and WASI, the example uses NIOAsyncRuntime for both macOS and WASI.
swift run ExampleMTELGIf needed, install the latest Swift for Webassembly SDK
The instructions below assume the swift-6.2.1-RELEASE_wasm Swift SDK is installed.
swift run --swift-sdk swift-6.2.1-RELEASE_wasm ExampleMTELGHello World!
Shutdown status: OK