You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When locking an Arc<Mutex<...>> I can call lock_arc, which returns an extremely handy owned MutexGuardArc.
I would expect an Arc<RwLock<...>> to provide read_arc and write_arc to return owned guards as well, unfortunately these methods do not exist. They should be possible to implement, since the tokio project does provide such methods.
The text was updated successfully, but these errors were encountered:
When locking an
Arc<Mutex<...>>
I can calllock_arc
, which returns an extremely handy ownedMutexGuardArc
.I would expect an
Arc<RwLock<...>>
to provideread_arc
andwrite_arc
to return owned guards as well, unfortunately these methods do not exist. They should be possible to implement, since the tokio project does provide such methods.The text was updated successfully, but these errors were encountered: