mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	* refactor: user entity * chore: rebase fixes * refactor: remove int user Id * refactor: migrate store userId from int to string * refactor: rename uid to id * feat: drift * pr feedback * refactor: move common overrides to mixin * refactor: remove int user Id * refactor: migrate store userId from int to string * refactor: rename uid to id * feat: user & partner sync stream * pr changes * refactor: sync service and add tests * chore: remove generated change * chore: move sync model * rebase: convert string ids to byte uuids * rebase * add processing logs * batch db calls * rewrite isolate manager * rewrite with worker_manager * misc fixes * add sync order test --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
		
			
				
	
	
		
			13 lines
		
	
	
		
			610 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			610 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:hooks_riverpod/hooks_riverpod.dart';
 | 
						|
 | 
						|
/// Provider holding a boolean function that returns true when cancellation is requested.
 | 
						|
/// A computation running in the isolate uses the function to implement cooperative cancellation.
 | 
						|
final cancellationProvider = Provider<bool Function()>(
 | 
						|
  // This will be overridden in the isolate's container.
 | 
						|
  // Throwing ensures it's not used without an override.
 | 
						|
  (ref) => throw UnimplementedError(
 | 
						|
    "cancellationProvider must be overridden in the isolate's ProviderContainer and not to be used in the root isolate",
 | 
						|
  ),
 | 
						|
  name: 'cancellationProvider',
 | 
						|
);
 |