Preparing search index...
The search index is not available
TouchGuild
TouchGuild
SequentialBucket
sequentialBucket
Class sequentialBucket
A ratelimit bucket.
Index
Constructors
constructor
Properties
last
latency
Ref
limit
processing
remaining
reset
Methods
queue
Constructors
constructor
new
sequentialBucket
(
limit
:
number
,
latencyRef
:
LatencyRef
)
:
sequentialBucket
Parameters
limit
:
number
latencyRef
:
LatencyRef
Returns
sequentialBucket
Properties
last
last
:
number
latency
Ref
latencyRef
:
LatencyRef
limit
limit
:
number
processing
processing
:
boolean
|
Timeout
= false
remaining
remaining
:
number
reset
reset
:
number
Methods
queue
queue
(
func
:
(
cb
:
()
=>
void
)
=>
void
,
priority
?:
boolean
)
:
void
Add an item to the queue.
Parameters
func
:
(
cb
:
()
=>
void
)
=>
void
The function to queue.
priority
:
boolean
= false
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
last
latency
Ref
limit
processing
remaining
reset
Methods
queue
TouchGuild
Loading...
A ratelimit bucket.