setupLockName function

String setupLockName(
  1. String prefix,
  2. String canonicalAtSign
)

The lock name guarding first setup of canonicalAtSign, under the caller's prefix: <prefix>:<canonicalAtSign>.

Every instance of the application must use the same prefix for the same atSign to share one lock.

Implementation

String setupLockName(String prefix, String canonicalAtSign) =>
    '$prefix:$canonicalAtSign';