This commit is contained in:
mertalev
2026-02-11 20:13:31 -05:00
parent c6a7b1fbb5
commit a476c7dad6
5 changed files with 7 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ class BackUpState {
final DateTime progressInFileSpeedUpdateTime;
final int progressInFileSpeedUpdateSentBytes;
final double iCloudDownloadProgress;
final Completer cancelToken;
final Completer<void> cancelToken;
final ServerDiskInfo serverInfo;
final bool autoBackup;
final bool backgroundBackup;

View File

@@ -108,7 +108,7 @@ class DriftBackupState {
final BackupError error;
final Map<String, DriftUploadStatus> uploadItems;
final Completer? cancelToken;
final Completer<void>? cancelToken;
final Map<String, double> iCloudDownloadProgress;
@@ -132,7 +132,7 @@ class DriftBackupState {
bool? isSyncing,
BackupError? error,
Map<String, DriftUploadStatus>? uploadItems,
Completer? cancelToken,
Completer<void>? cancelToken,
Map<String, double>? iCloudDownloadProgress,
}) {
return DriftBackupState(

View File

@@ -41,7 +41,7 @@ class BackgroundService {
static const MethodChannel _backgroundChannel = MethodChannel('immich/backgroundChannel');
static const notifyInterval = Duration(milliseconds: 400);
bool _isBackgroundInitialized = false;
Completer? _cancellationToken;
Completer<void>? _cancellationToken;
bool _canceledBySystem = false;
int _wantsLockTime = 0;
bool _hasLock = false;
@@ -464,7 +464,7 @@ class BackgroundService {
return ok;
}
void _onAssetUploaded({bool shouldNotify = false}) async {
void _onAssetUploaded({bool shouldNotify = false}) {
if (!shouldNotify) {
return;
}

View File

@@ -234,7 +234,7 @@ class BackupService {
Future<bool> backupAsset(
Iterable<BackupCandidate> assets,
Completer cancelToken, {
Completer<void> cancelToken, {
bool isBackground = false,
PMProgressHandler? pmProgressHandler,
required void Function(SuccessUploadAsset result) onSuccess,

View File

@@ -153,7 +153,7 @@ class ForegroundUploadService {
/// Upload files from shared intent
Future<void> uploadShareIntent(
List<File> files, {
Completer? cancelToken,
Completer<void>? cancelToken,
void Function(String fileId, int bytes, int totalBytes)? onProgress,
void Function(String fileId)? onSuccess,
void Function(String fileId, String errorMessage)? onError,