Skip to content

Add an owned variant of RwLockReadGuard and RwLockWriteGuard #991

Open
@haselkern

Description

@haselkern

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions