Skip to content

[Fix] Main actor in wrong thread #64851

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aluco100
Copy link

@aluco100 aluco100 commented Apr 3, 2023

This pull request is related to this issue #64767. I made a test to be sure if the main actor is in the correct thread or not. It seems to be in the correct one.

Resolves #64767

@aluco100
Copy link
Author

aluco100 commented Apr 3, 2023

@swift-ci

@ktoso
Copy link
Contributor

ktoso commented Apr 3, 2023

Thanks for the PR, but I don't think we need this test, we have numerous tests which ensure that code on the @mainactor pass the "is this the main actor executor".

It also does not "resolve" #64767 since that might require some detective work if or how something went wrong there.

@ktoso ktoso self-assigned this Apr 3, 2023
@ktoso ktoso added the concurrency Feature: umbrella label for concurrency language features label Apr 3, 2023
@aluco100
Copy link
Author

aluco100 commented Apr 3, 2023

Hi there,

I think the main executor is the main thread isn't it? So in that case I need to make a test to ensure it right? if not could you guide me a little bit?

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency Feature: umbrella label for concurrency language features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MainActor is not working
3 participants