needle icon indicating copy to clipboard operation
needle copied to clipboard

Generated Code doesn't work with actor annotated dependencies

Open vsanthanam opened this issue 3 years ago • 1 comments

@MainActor annotated dependencies, produce uncompilable code

To support all actor annotations, I think the solution here is to make the getters for those dependencies async,

to support just @MainActor, we could just require that dependency access happen on the main thread by Component, Dependency, and generated code with @MainActor

vsanthanam avatar Jun 17 '22 13:06 vsanthanam

Create a proof of concept PR #423

vsanthanam avatar Jun 17 '22 13:06 vsanthanam