components/flutterstart_core/src/lock/session_lock library
Classes
- SessionLock
- Manages a user-scoped session lock for serializing FlutterStart operations against a canonical destination path.
Functions
-
getUserStateDir(
{Map< String, String> ? environment}) → String - Derives the user-scoped state directory for FlutterStart session locks.
-
withSessionLock<
T> (String destinationPath, Future< T> action(), {String? baseDir, bool isPidAlive(int pid)?, int? currentPid}) → Future<T> -
Convenience helper executing
actionwithin a session lock.
Exceptions / Errors
- SessionLockHeldException
- Exception thrown when a session lock is already held by another live operation.