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