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.