Skip to content

Lint for using await while holding a MutexGuard  #4226

Closed
@tkaitchuck

Description

@tkaitchuck

It would be useful to implement a lint against calling .await while a holding a MutexGuard.
This is almost certainly an error (and a non-obvious one) because the Reactor is going to end up invoking code not visible in the current scope while the lock is held.

Metadata

Metadata

Assignees

Labels

A-lintArea: New lintsL-correctnessLint: Belongs in the correctness lint groupT-async-awaitType: Issues related to async/await

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions