RwLock miss try_read and try_write method #2284
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-sync
Module: tokio/sync
Version 0.2.13
Platform
archlinux x64
Subcrates
Description
I try
It should compile well. But cargo report
I read the doc, RwLock doesn't have
try_read
ortry_write
, if I want to try to acquire a read lock or write lock but don't block when acquire failed, what should I doThe text was updated successfully, but these errors were encountered: