Skip to content

Consider turning on NonisolatedNonsendingByDefault #89

@Cyberbeni

Description

@Cyberbeni

I am currently testing this upcoming feature and noticed that having dependencies without this option enabled can cause #SendingRisksDataRace errors that require you to bubble up the @concurrent annotation in those call chains. If I understand it correctly, having this turned on won't cause any issues to consumers of the package.

Sadly it seems to not work correctly for local functions, so those have to be manually annotated. (2 places in the current codebase, might also need some #if compiler checks since this feature is Swift 6.2+ only. I only have 6.2.3 installed, so I didn't check this.)

I don't know yet if there are benefits other than not blocking the consumers of the package to use this upcoming feature themselves.

Edit: We should also benchmark it before commiting to turning it on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions