Skip to content

Interface: PartialLockOps ​

Defined in: netconf/src/operations/partial-lock.ts:79

What client.ops.partialLock holds.

Methods ​

lock() ​

ts
lock(select, options?): Promise<PartialLock>;

Defined in: netconf/src/operations/partial-lock.ts:81

<partial-lock>: lock the nodes the selects pick out. Resolves with a handle that unlocks on dispose.

Parameters ​

select ​

| PartialLockSelect | readonly PartialLockSelect[]

options? ​

RpcOptions

Returns ​

Promise<PartialLock>


unlock() ​

ts
unlock(lockId, options?): Promise<void>;

Defined in: netconf/src/operations/partial-lock.ts:83

<partial-unlock>: release a lock this session holds, by id.

Parameters ​

lockId ​

number

options? ​

RpcOptions

Returns ​

Promise<void>

Released under the MIT Licence.