W-CF Documentation - v11.0.0
Preparing search index...
utils/async/Lock
Lock
Class Lock
Can be use to synchronize an asynchronous operation to prevent parallel execution.
Index
Constructors
constructor
Accessors
is
Locked
Methods
acquire
Lock
wait
While
Locked
Constructors
constructor
new
Lock
(
pMaxConcurrentTasks
?:
number
)
:
Lock
Parameters
pMaxConcurrentTasks
:
number
= 1
Returns
Lock
Accessors
is
Locked
get
isLocked
()
:
boolean
Returns
boolean
Methods
acquire
Lock
acquireLock
()
:
Promise
<
LockContext
>
Returns
Promise
<
LockContext
>
wait
While
Locked
waitWhileLocked
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
is
Locked
Methods
acquire
Lock
wait
While
Locked
W-CF Documentation - v11.0.0
Loading...
Can be use to synchronize an asynchronous operation to prevent parallel execution.