Skip to content

craft-hub / setProfileMigrationGuard

Function: setProfileMigrationGuard() ​

setProfileMigrationGuard(lease, path, transaction, state?): Promise<void>

Defined in: packages/craft-hub/src/profile-lease.ts:241

Install/transition a durable interlock while an actual exclusive lease is held. Await before key mutations.

Parameters ​

lease ​

ProfileLease

path ​

string

transaction ​

string

state? ​

"pending" | "source-retained" = 'pending'

Returns ​

Promise<void>

Released under the MIT License.