Classes
Global | Description |
---|---|
RequestQueue | RequestQueue |
Functions
Global | Description |
---|---|
initialize() | 初始化请求队列。 Initialize the request queue. |
enqueue(key, value) | 将请求加入队列。 Enqueues a request. |
update() | 更新请求队列,顺序处理请求。 Updates the request queue, processing requests sequentially. |
raisePriority(key) | 通过将请求移动到队列前端来提高其优先级。 Raises the priority of a request by moving it to the front of the queue. |
clear() | 清除队列中的所有请求。 Clears all requests from the queue. |
RequestQueue
RequestQueue
Kind: global class
new RequestQueue()
用于管理异步请求的请求队列类。
The request queue class for managing asynchronous requests.
initialize()
初始化请求队列。
Initialize the request queue.
Kind: global function
enqueue(key, value)
将请求加入队列。
Enqueues a request.
Kind: global function
Param | Type | Description |
---|---|---|
key | String | 请求键 The request key |
value | Object | 请求值 The request value |
update()
更新请求队列,顺序处理请求。
Updates the request queue, processing requests sequentially.
Kind: global function
raisePriority(key)
通过将请求移动到队列前端来提高其优先级。
Raises the priority of a request by moving it to the front of the queue.
Kind: global function
Param | Type | Description |
---|---|---|
key | String | 要提高优先级的请求键 The request key to prioritize |
clear()
清除队列中的所有请求。
Clears all requests from the queue.
Kind: global function