MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / last_n_ids

Method last_n_ids

crates/hyperqueue/src/server/state.rs:92–95  ·  view source on GitHub ↗
(&self, n: u32)

Source from the content-addressed store, hash-verified

90 }
91
92 pub fn last_n_ids(&self, n: u32) -> impl Iterator<Item = JobId> + use<> {
93 let n = min(n, self.job_id_counter - 1);
94 ((self.job_id_counter - n)..self.job_id_counter).map(|id| id.into())
95 }
96
97 pub fn last_job_id(&self) -> JobId {
98 JobId::new(self.job_id_counter - 1)

Callers 4

get_job_idsFunction · 0.80
compute_job_infoFunction · 0.80
handle_job_cancelFunction · 0.80
handle_job_closeFunction · 0.80

Calls 1

intoMethod · 0.80

Tested by

no test coverage detected