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

fix: Fix warnings and prevent potential issues #165

Merged
merged 5 commits into from
Nov 5, 2024
Merged

Conversation

fabriziodemaria
Copy link
Member

@fabriziodemaria fabriziodemaria commented Nov 4, 2024

This also includes some changes suggested by the static linter.

Suggestion is to review commit by commit

@fabriziodemaria fabriziodemaria changed the title fix: Fix warnings and reduce potential issues fix: Fix warnings and prevent potential issues Nov 4, 2024
@@ -123,7 +123,12 @@ final class EventSenderEngineImpl: EventSenderEngine {
}

func withSemaphore(callback: @escaping () async -> Void) async {
semaphore.wait()
await withCheckedContinuation { continuation in
Copy link
Member

Choose a reason for hiding this comment

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

Not fully sure if this is a no-op change or not?

Copy link
Member Author

Choose a reason for hiding this comment

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

it should behave the same way, just removes a warning (and apparently being a safer approach against deadlocks)

@fabriziodemaria fabriziodemaria merged commit 448fb93 into main Nov 5, 2024
6 checks passed
@fabriziodemaria fabriziodemaria deleted the fix-warnings branch November 5, 2024 10:09
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.

2 participants