Skip to content

Conversation

@dioneea-sabs
Copy link

No description provided.

@dioneea-sabs dioneea-sabs changed the title Fix continuation misues in case of timeout Fix continuation misuse in case of timeout Jan 27, 2024
Copy link

@ucerxxx ucerxxx left a comment

Choose a reason for hiding this comment

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

Better add guard, that's safer and more swiftish

guard let self else { return }
self.continuation?.resume(throwing: LocationErrors.timeout)
self.continuation = nil
self.cancellable?.cancel(task: self)

@Teglgaard
Copy link

@dioneea-sabs - Have you made the alteration so it can be merged?

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.

3 participants