You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix swift 6/swift concurrency warnings/errors in library
Supported MainActor (yes it is safe to change the thread to main one if necessary)
Support async/await ??... but it's very hard support and I'm not sure what to do. In fact, these are two copies of the library - with support async await and without support, because it is necessary to transfer information about this to all classes.
Support other situations?? Check actor supported.
About MainActor, your can write:
@MainActor
final class MyMainActorClass { ... } (or UI)
------------------
container.register { @MainActor in MyMainActorClass(dep1: $0, dep2: $1, ...) }
And yes this class always maked on Main thread in MainActor content.
In current moment, swift 6 have bug, and your can't write:
container.register(MyMainActorClass.init)
because swift 6 considers it a init function call :(
I don't know how, but it's need...
The text was updated successfully, but these errors were encountered: