Skip to content

Conversation

scottmarchant
Copy link
Collaborator

@scottmarchant scottmarchant commented Jun 27, 2025

Summary

Initial implementation of common GCD API's using Swift Concurrency. The goal of this implementation is to enable wasm compilation for many repositories that currently use GCD.

Note this is a critical part of larger effort to compile several open source Swift repositories to wasm

Details

DispatchAsync is a temporary experimental repository aimed at implementing missing Dispatch support in the SwiftWasm toolchain.
Currently, the Swift SDK for WebAssembly doesn't include Dispatch.
But it does support Swift Concurrency. DispatchAsync implements a number of common Dispatch API's using Swift Concurrency under the hood.

Refer to the README updates in this PR for more details.

@scottmarchant scottmarchant marked this pull request as draft June 27, 2025 20:28
@scottmarchant scottmarchant force-pushed the feat/swift-wasm-support branch from 47b69a0 to e878eb9 Compare July 9, 2025 22:24
Copy link
Collaborator

@clackary clackary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a good start! My comments are mostly nits, approving to keep it moving.

@scottmarchant scottmarchant merged commit 41f71ae into main Sep 26, 2025
41 of 57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants