We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b55dbfe commit 9291fb5Copy full SHA for 9291fb5
WebGPUDemo/Sources/Entrypoint.swift
@@ -38,6 +38,7 @@ struct Entrypoint {
38
let gpu = Window.global.navigator.gpu
39
40
do throws(JSException) {
41
+ // Using promises instead of `async` functions due to https://github.com/swiftlang/swift/issues/83750
42
let adapterPromise: JSPromise = gpu.requestAdapter()
43
let devicePromise = JSPromise(from: try await adapterPromise.value().requestDevice())!
44
let device = try await GPUDevice(unsafelyWrapping: devicePromise.value().object!)
0 commit comments