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