Preparing search index...
The search index is not available
Documentation - v0.0.23
Documentation
@fuman/utils
AsyncLock
Class AsyncLock
Simple class implementing a semaphore like behaviour.
Index
Constructors
constructor
Methods
acquire
with
Constructors
constructor
new
AsyncLock
()
:
AsyncLock
Returns
AsyncLock
Methods
acquire
acquire
()
:
Promise
<
AsyncLockGuard
>
Returns
Promise
<
AsyncLockGuard
>
with
with
<
T
>
(
func
:
()
=>
Promise
<
T
>
)
:
Promise
<
T
>
Type Parameters
T
Parameters
func
:
()
=>
Promise
<
T
>
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
acquire
with
Documentation - v0.0.23
Loading...
Simple class implementing a semaphore like behaviour.