Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@MainActor warnings when calling startRunning/stopRunning on background thread #105

Open
brunomunizaf opened this issue Apr 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@brunomunizaf
Copy link

brunomunizaf commented Apr 14, 2023

Hi Paul,

Would you mind adding these two flags to your Package.swift?
I'm facing @mainactor warnings that startRunning/stopRunning did not got called on the main thread.

for target in package.targets {
  if target.type == .binary { continue }
  target.swiftSettings = target.swiftSettings ?? []
  target.swiftSettings?.append(
    .unsafeFlags([
      "-Xfrontend", "-strict-concurrency=targeted",
      "-Xfrontend", "-enable-actor-data-race-checks"
    ], .when(configuration: .debug))
  )
}
@nathanfallet
Copy link
Collaborator

Hello! Feel free to open a PR to suggest your changes, and we'll be happy to review it and merge it.

@nathanfallet nathanfallet added the bug Something isn't working label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants