Skip to content

Commit efa0bcb

Browse files
committed
Clarify blocking on the RwLock around the started flag.
1 parent ddd8634 commit efa0bcb

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_asset/src/processor

1 file changed

+1
-1
lines changed

crates/bevy_asset/src/processor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub(crate) struct ProcessingState {
124124
/// A bool indicating whether the processor has started or not.
125125
///
126126
/// This is different from `state` since `state` is async, and we only assign to it once, so we
127-
/// should ~never block on it.
127+
/// should almost never block on it (and only for a few cycles).
128128
// TODO: Remove this once the processor can process new asset sources.
129129
pub(crate) started: RwLock<bool>,
130130
/// The overall state of processing.

0 commit comments

Comments
 (0)