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
Sequential
Bucket
(
limit
,
latencyRef
)
:
SequentialBucket
Parameters
limit
:
number
latencyRef
:
LatencyRef
Returns
SequentialBucket
Properties
last
last
:
number
latency
Ref
latency
Ref
:
LatencyRef
limit
limit
:
number
processing
processing
:
boolean
|
Timeout
= false
remaining
remaining
:
number
reset
reset
:
number
Methods
queue
queue
(
func
,
priority
?
)
:
void
Add an item to the queue.
Parameters
func
:
(
(
cb
:
(
(
)
=>
void
)
)
=>
void
)
The function to queue.
(
cb
)
:
void
Parameters
cb
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
void
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.