Skip to content

Add logic to exclude async without await rule for concurrent function#6284

Merged
SimplyDanny merged 2 commits intorealm:mainfrom
nandhinisubbu:await-exclude-concurrent-func
Oct 8, 2025
Merged

Add logic to exclude async without await rule for concurrent function#6284
SimplyDanny merged 2 commits intorealm:mainfrom
nandhinisubbu:await-exclude-concurrent-func

Conversation

@nandhinisubbu
Copy link
Contributor

Fix - #6283

@SwiftLintBot
Copy link

SwiftLintBot commented Oct 7, 2025

18 Messages
📖 Building this branch resulted in the same binary size as when built on main.
📖 Linting Aerial with this PR took 0.82 s vs 0.8 s on main (2% slower).
📖 Linting Alamofire with this PR took 1.01 s vs 1.0 s on main (1% slower).
📖 Linting Brave with this PR took 6.84 s vs 6.77 s on main (1% slower).
📖 Linting DuckDuckGo with this PR took 21.1 s vs 21.17 s on main (0% faster).
📖 Linting Firefox with this PR took 10.78 s vs 10.72 s on main (0% slower).
📖 Linting Kickstarter with this PR took 7.61 s vs 7.6 s on main (0% slower).
📖 Linting Moya with this PR took 0.4 s vs 0.42 s on main (4% faster).
📖 Linting NetNewsWire with this PR took 2.29 s vs 2.38 s on main (3% faster).
📖 Linting Nimble with this PR took 0.58 s vs 0.61 s on main (4% faster).
📖 Linting PocketCasts with this PR took 6.64 s vs 6.69 s on main (0% faster).
📖 Linting Quick with this PR took 0.42 s vs 0.41 s on main (2% slower).
📖 Linting Realm with this PR took 3.28 s vs 3.29 s on main (0% faster).
📖 Linting Sourcery with this PR took 1.82 s vs 1.81 s on main (0% slower).
📖 Linting Swift with this PR took 4.11 s vs 4.11 s on main (0% slower).
📖 Linting VLC with this PR took 1.1 s vs 1.13 s on main (2% faster).
📖 Linting Wire with this PR took 17.15 s vs 17.12 s on main (0% slower).
📖 Linting WordPress with this PR took 11.22 s vs 11.21 s on main (0% slower).

Generated by 🚫 Danger

Copy link
Collaborator

@SimplyDanny SimplyDanny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the prompt fix! I came up with this other case for closures that we should consider too.

@SimplyDanny SimplyDanny linked an issue Oct 7, 2025 that may be closed by this pull request
Copy link
Collaborator

@SimplyDanny SimplyDanny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @nandhinisubbu! Looks good now.

@SimplyDanny SimplyDanny merged commit a0414c9 into realm:main Oct 8, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

async_without_await triggers on @concurrent functions without await

3 participants