deleteSlice method
Waits for any preceding deleteSlice and addSlice operations. It does this without needing to be called with await.
Implementation
Future<void> deleteSlice({required ChildProgress child}) async {
await _lock; // Wait for previous operation to finish
_lock = _deleteSlice(child: child);
}