Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 605 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 605 Bytes

Swift Non-Reentrant actor macro

Following a discussion on the Swift Forum Making actor non reentrant some ideas were proposed to workaround this limitation. One being to queue all calls to an AsyncStream and execute them serially.

Would it be possible to implement this pattern using the newly added Function Body Macro ?

This is not well tested, or even assessed to be correct. Use this at your own risk.

Feedbacks are more than welcome.