transfer commit

This commit is contained in:
2023-02-21 18:10:39 +00:00
parent 8387df352b
commit d75add5ea3
10 changed files with 135 additions and 46 deletions

View File

@@ -25,7 +25,7 @@ pub trait Task {
}
fn run_to_completion(&mut self) -> Self::Result {
loop { if let TaskState::Complete(r) = self.run_once() {return r} }
loop { if let TaskState::Complete(r) = self.run_n_times(u64::MAX) {return r} }
}
fn boxed<'a>(self) -> TaskBox<'a, Self::Result> where Self: 'a + Sized { Box::new(self) }