-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
ConcurrencуArea → standard library: The `Concurrency` module under the standard library umbrellaArea → standard library: The `Concurrency` module under the standard library umbrellaWASIWebAssembly System Interface supportWebAssembly System Interface supportWebAssemblyPlatform: WebAssemblyPlatform: WebAssemblybugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.embeddedEmbedded SwiftEmbedded Swift
Description
Description
No response
Reproduction
Install Swift SDKs for Wasm for a corresponding swift.org toolchain and try to build this code
import _Concurrency
@main struct Main {
static func main() async {
await Task.sleep(1234)
}
}
It fails to build with error: 'sleep' is unavailable: unavailable in embedded Swift
Expected behavior
Code builds and works.
Environment
Apple Swift version 6.2-dev (LLVM 720e920f24c166e, Swift a5fa3edf54e72fa)
Target: arm64-apple-macosx15.0
Build config: +assertions
Additional information
No response
Metadata
Metadata
Assignees
Labels
ConcurrencуArea → standard library: The `Concurrency` module under the standard library umbrellaArea → standard library: The `Concurrency` module under the standard library umbrellaWASIWebAssembly System Interface supportWebAssembly System Interface supportWebAssemblyPlatform: WebAssemblyPlatform: WebAssemblybugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.embeddedEmbedded SwiftEmbedded Swift
Type
Projects
Status
No status
Status
No status