telebot-ts API Documentation - v1.0.0
GitHub Repository
Telegram Bot API
Preparing search index...
index
withStateLock
Function withStateLock
withStateLock
<
T
>
(
stateLocks
:
Map
<
string
,
Promise
<
void
>
>
,
keys
:
string
[]
,
fn
:
()
=>
Promise
<
T
>
,
)
:
Promise
<
T
>
Executes the state-locked critical section preventing lost updates.
Type Parameters
T
Parameters
stateLocks
:
Map
<
string
,
Promise
<
void
>
>
keys
:
string
[]
fn
:
()
=>
Promise
<
T
>
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub Repository
Telegram Bot API
telebot-ts API Documentation - v1.0.0
Loading...
Executes the state-locked critical section preventing lost updates.