pub fn new(value: T) -> RwLock<T>
    where
        T: Sized,
    {
        RwLock {
            c: UnsafeCell::new(value),
            s: Semaphore::new(MAX_READS),
        }
    }
/// Creates a new instance of an `RwLock<T>` which is unlocked.
///
/// # Examples
///
/// ```
/// use tokio::sync::RwLock;
///
/// let lock = RwLock::new(5);
/// ```
Creates a new instance of an `RwLock` which is unlocked.
Creates a new instance of an ` RwLock ` which is unlocked .
pub fn new(value: T) -> RwLock<T>
    where
        T: Sized,
    {
        RwLock {
            c: UnsafeCell::new(value),
            s: Semaphore::new(MAX_READS),
        }
    }
pub fn new ( value : T ) -> RwLock < T > where T : Sized , { RwLock { c : UnsafeCell :: new ( value ) , s : Semaphore :: new ( MAX_READS ) , } }
Creates a new instance of an `RwLock<T>` which is unlocked.
Creates a new instance of an ` RwLock<T > ` which is unlocked .
value
T
examples
```
use tokio::sync::RwLock.


` ` ` use tokio :: sync :: RwLock .