Rename deprioritize_task -> deprioritize
It applies to a family of tasks, not a task.
This commit is contained in:
parent
f3b6719c76
commit
32979f3aca
3 changed files with 3 additions and 2 deletions
|
@ -354,6 +354,7 @@ impl<T: Send> Model<T> {
|
|||
})
|
||||
});
|
||||
|
||||
// Run other tasks until the event is emitted.
|
||||
loop {
|
||||
match rx.try_next() {
|
||||
Ok(Some(event)) => return event,
|
||||
|
|
|
@ -245,7 +245,7 @@ impl BackgroundExecutor {
|
|||
}
|
||||
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub fn deprioritize_task(&self, task_label: TaskLabel) {
|
||||
pub fn deprioritize(&self, task_label: TaskLabel) {
|
||||
self.dispatcher.as_test().unwrap().deprioritize(task_label)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue