async fn create_storage(
    factory: Arc<Mutex<InMemoryStorageFactory>>,
) -> Arc<Mutex<DeviceStorage<AudioInfo>>> {
    let store = factory.lock().await.get_device_storage::<AudioInfo>(StorageAccessContext::Test);
    {
        let mut store_lock = store.lock().await;
        let audio_info = default_audio_info();
        store_lock.write(&audio_info, false).await.unwrap();
    }
    store
}
// Gets the store from |factory| and populate it with default values.
Gets the store from |factory| and populate it with default values.
Gets the store from |factory| and populate it with default values .
async fn create_storage(
    factory: Arc<Mutex<InMemoryStorageFactory>>,
) -> Arc<Mutex<DeviceStorage<AudioInfo>>> {
    let store = factory.lock().await.get_device_storage::<AudioInfo>(StorageAccessContext::Test);
    {
        let mut store_lock = store.lock().await;
        let audio_info = default_audio_info();
        store_lock.write(&audio_info, false).await.unwrap();
    }
    store
}
async fn create_storage ( factory : Arc < Mutex < InMemoryStorageFactory > > , ) -> Arc < Mutex < DeviceStorage < AudioInfo > > > { let store = factory . lock ( ) . await . get_device_storage :: < AudioInfo > ( StorageAccessContext :: Test ) ; { let mut store_lock = store . lock ( ) . await ; let audio_info = default_audio_info ( ) ; store_lock . write ( & audio_info , false ) . await . unwrap ( ) ; } store }
Gets the store from |factory| and populate it with default values.
Gets the store from |factory| and populate it with default values .
factory
Arc<Mutex<InMemoryStorageFactory>>
factory
Arc<Mutex<InMemoryStorageFactory>>