Skip to content

MainActor is not working #64767

Open
@miku1958

Description

@miku1958

I add MainActor to the function but it still be called from background thread
MicrosoftTeams-image

I am using Xcode 14.2 Swift 5.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    actorFeature → concurrency: `actor` declarationsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfconcurrencyFeature: umbrella label for concurrency language featuresmissing infoResolution: Is missing crucial info such as a test case or a concise descriptionswift 5.7unexpected behaviorBug: Unexpected behavior or incorrect output

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions