Swift Embedded Concurrency

Hello!
I read in the Swift Embedded manual that Swift Concurrency is under development.

This got me wondering... How is this going to be implemented? For example, will we provide some sort of callbacks representative of each thread to the concurrency API?

1 Like

We are currently working through "How is this going to be implemented", so the answer for now is to stay posted.

One active area of work is stabilizing the interface between libSwiftConcurrency and the "Executor" which actually runs the Swift Concurrency Tasks. On desktop platforms, this is handled by libDispatch, but on embedded systems it will need a different library specific to the platform.

its likely we will need to create adapters for popular runtimes e.g. Zephyr, FreeRTOS, etc...

3 Likes