-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
ec90234
to
f831167
Compare
f831167
to
136e5a8
Compare
@@ -123,7 +123,12 @@ final class EventSenderEngineImpl: EventSenderEngine { | |||
} | |||
|
|||
func withSemaphore(callback: @escaping () async -> Void) async { | |||
semaphore.wait() | |||
await withCheckedContinuation { continuation in |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)
This also includes some changes suggested by the static linter.
Suggestion is to review commit by commit