Skip to content

Classes

GlobalDescription
RequestQueue

RequestQueue

Functions

GlobalDescription
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

ParamTypeDescription
keyString请求键 The request key
valueObject请求值 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

ParamTypeDescription
keyString要提高优先级的请求键 The request key to prioritize

clear()

清除队列中的所有请求。
Clears all requests from the queue.

Kind: global function


贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新