Skip to content

Commit 0a8ff79

Browse files
committed
rename completed to done
1 parent 2a73425 commit 0a8ff79

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

turbopack/crates/turbo-tasks-backend/src/backend/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -455,11 +455,11 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
455455
Some(Ok(Err(listen_to_done_event(this, reader, done_event))))
456456
}
457457
Some(InProgressState::InProgress(box InProgressStateInner {
458-
completed,
458+
done,
459459
done_event,
460460
..
461461
})) => {
462-
if !*completed {
462+
if !*done {
463463
Some(Ok(Err(listen_to_done_event(this, reader, done_event))))
464464
} else {
465465
None
@@ -1145,7 +1145,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
11451145
done_event,
11461146
session_dependent: false,
11471147
marked_as_completed: false,
1148-
completed: false,
1148+
done: false,
11491149
new_children: Default::default(),
11501150
})),
11511151
});
@@ -1288,7 +1288,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
12881288
};
12891289
let &mut InProgressState::InProgress(box InProgressStateInner {
12901290
stale,
1291-
ref mut completed,
1291+
ref mut done,
12921292
ref done_event,
12931293
ref mut new_children,
12941294
..
@@ -1329,7 +1329,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
13291329
}
13301330

13311331
// mark the task as completed, so dependent tasks can continue working
1332-
*completed = true;
1332+
*done = true;
13331333
done_event.notify(usize::MAX);
13341334

13351335
// take the children from the task to process them
@@ -1507,7 +1507,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
15071507
once_task: _,
15081508
stale,
15091509
session_dependent,
1510-
completed: _,
1510+
done: _,
15111511
marked_as_completed: _,
15121512
new_children,
15131513
}) = in_progress

turbopack/crates/turbo-tasks-backend/src/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ pub struct InProgressStateInner {
314314
/// task completion of the task for strongly consistent reads.
315315
pub marked_as_completed: bool,
316316
/// Task execution has completed and the output is available.
317-
pub completed: bool,
317+
pub done: bool,
318318
/// Event that is triggered when the task output is available (completed flag set).
319319
/// This is used to wait for completion when reading the task output before it's available.
320320
pub done_event: Event,

0 commit comments

Comments
 (0)