GlobalLock constructor

GlobalLock(
  1. String name
)

Creates a lock named name.

name is any string, the same for all the users of the lock: pick one specific to the application and the resource it protects. Creating the object does not acquire the lock.

Implementation

factory GlobalLock(String name) => impl.newGlobalLock(name);