fn next_table(&self) -> Option<(usize, &str)> {
        let mut status = self.status.lock();

        status
            .table_states
            .iter()
            .position(|s| s == &TableState::NotStarted)
            .map(|pos| {
                status.table_states[pos] = TableState::Running;
                (pos, &*self.partition_summary.tables[pos].name)
            })
    }
// returns the position of the next table
returns the position of the next table
returns the position of the next table
fn next_table(&self) -> Option<(usize, &str)> {
        let mut status = self.status.lock();
        status
            .table_states
            .iter()
            .position(|s| s == &TableState::NotStarted)
            .map(|pos| {
                status.table_states[pos] = TableState::Running;
                (pos, &*self.partition_summary.tables[pos].name)
            })
    }
fn next_table ( & self ) -> Option < ( usize , & str ) > { let mut status = self . status . lock ( ) ; status . table_states . iter ( ) . position ( | s | s == & TableState :: NotStarted ) . map ( | pos | { status . table_states [ pos ] = TableState :: Running ; ( pos , & * self . partition_summary . tables [ pos ] . name ) } ) }
returns the position of the next table
returns the position of the next table
&self
&self