https://fatbobman.com/en/posts/mainactor-assumeisolated/
Use MainActor.assumeIsolated in a synchronous context to create closure safely on the main thread and return Sendable types, achieving full compatibility...
legacy apiusingmainactorsolvecompatibility