File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/sqlite_async/lib/src Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ abstract class Mutex {
5
5
{
6
6
/// An optional identifier for this Mutex instance.
7
7
/// This could be used for platform specific logic or debugging purposes.
8
+ /// Currently this is not used on native platforms.
9
+ /// On web this will be used for the lock name if Navigator locks are available.
8
10
String ? identifier}) {
9
11
return MutexImpl (identifier: identifier);
10
12
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import 'package:sqlite_async/src/common/port_channel.dart';
8
8
9
9
abstract class MutexImpl implements Mutex {
10
10
factory MutexImpl ({String ? identifier}) {
11
- return SimpleMutex ();
11
+ return SimpleMutex (identifier : identifier );
12
12
}
13
13
}
14
14
You can’t perform that action at this time.
0 commit comments