Skip to content

execute_validated_query_async is using std::sync::RwLock  #532

@jxs

Description

@jxs

execute_validated_query_async is using std::sync::RwLock which blocks the thread while waiting to read/write, this will probably block the whole runtime if running under tokio's basic_scheduler.

Both tokio and async-std offer async versions of the RwLock, there's also the futures crate Mutex

Metadata

Metadata

Assignees

Labels

area::asyncRelated to async/.await functionalitybugSomething isn't workinginvalidThis doesn't seem rightwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions