Skip to content

Добавить правило на запрет использования DispatchQueue.main.async без сопроводительного комментария #253

Description

@petropavel13

Не круто
Screenshot 2021-03-23 at 12 06 47

Норм:

@objc private func onCardChanged() {
    // onCardChanged called outside the main thread
    DispatchQueue.main.async {
        self.openCardIsConnectedViewController()
    }
}

Не норм:

@objc private func onCardChanged() {
    DispatchQueue.main.async { // called outside the main thread
        self.openCardIsConnectedViewController()
    }
}

Не норм:

@objc private func onCardChanged() {
    DispatchQueue.main.async {
        // called outside the main thread
        self.openCardIsConnectedViewController()
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions