tristanlabelle / swift-winrt

A Swift Projection for WinRT APIs
MIT License
17 stars 2 forks source link

Support generating @MainActor annotations #149

Closed tristanlabelle closed 2 months ago

tristanlabelle commented 5 months ago

Two possible implementations:

tristanlabelle commented 2 months ago

Let's consider this done with the custom Swift attribute support. Retroactively applying @MainActor to existing WinRT APIs might not be implementable because of the transitive effect of this attribute on any function taking a @MainActor class object as a parameter.