pub(crate) fn insert(&self, start: u64, download: Download) {
        let mut range_guard = self.ranges.lock().unwrap();
        range_guard.insert(start, download);
        self.cv.notify_all()
    }
/// Insert download result and notifies blocked readers that something changes
Insert download result and notifies blocked readers that something changes
Insert download result and notifies blocked readers that something changes
pub(crate) fn insert(&self, start: u64, download: Download) {
        let mut range_guard = self.ranges.lock().unwrap();
        range_guard.insert(start, download);
        self.cv.notify_all()
    }
pub ( crate ) fn insert ( & self , start : u64 , download : Download ) { let mut range_guard = self . ranges . lock ( ) . unwrap ( ) ; range_guard . insert ( start , download ) ; self . cv . notify_all ( ) }
Insert download result and notifies blocked readers that something changes
Insert download result and notifies blocked readers that something changes
&self
start
u64
download
Download
&self
start
u64
download
Download