pub fn garbage_collect_slice(&mut self, subnet_id: SubnetId, stream_position: ExpectedIndices) {
        if let Some((subnet_id, slice)) = self.garbage_collect_impl(&subnet_id, &stream_position) {
            self.slices.insert(subnet_id, slice);
        }

        self.stream_positions.insert(subnet_id, stream_position);
    }
/// Garbage collects all messages and signals before the given stream
/// position for the given slice.
///
/// Updates the subnet's `self.stream_positions` with the new position.
Garbage collects all messages and signals before the given stream
position for the given slice.

Updates the subnet's `self.stream_positions` with the new position.
Garbage collects all messages and signals before the given stream position for the given slice . Updates the subnet ' s ` self . stream_positions ` with the new position .
pub fn garbage_collect_slice(&mut self, subnet_id: SubnetId, stream_position: ExpectedIndices) {
        if let Some((subnet_id, slice)) = self.garbage_collect_impl(&subnet_id, &stream_position) {
            self.slices.insert(subnet_id, slice);
        }
        self.stream_positions.insert(subnet_id, stream_position);
    }
pub fn garbage_collect_slice ( & mut self , subnet_id : SubnetId , stream_position : ExpectedIndices ) { if let Some ( ( subnet_id , slice ) ) = self . garbage_collect_impl ( & subnet_id , & stream_position ) { self . slices . insert ( subnet_id , slice ) ; } self . stream_positions . insert ( subnet_id , stream_position ) ; }
Garbage collects all messages and signals before the given stream
position for the given slice.
Garbage collects all messages and signals before the given stream position for the given slice .
&mut self
subnet_id
SubnetId
stream_position
ExpectedIndices
&mut self
subnet_id
SubnetId
stream_position
ExpectedIndices