Search
Preparing search index...
The search index is not available
tutils
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
"asyncQueue"
AsyncQueue
Class AsyncQueue
表示一个异步队列,用于串行执行多个异步任务
Hierarchy
AsyncQueue
Implements
PromiseLike
<
any
>
Index
Accessors
is
Empty
Methods
then
Accessors
is
Empty
get
isEmpty
(
)
:
boolean
判断是否有异步任务正在执行
Returns
boolean
Methods
then
then<T>
(
callback
:
function
)
:
Promise
<
T
>
串行执行一个同步或异步函数
Type parameters
T
Parameters
callback:
function
待执行的函数
(
value
?:
any
)
:
T
|
Promise
<
T
>
Parameters
Optional
value:
any
Returns
T
|
Promise
<
T
>
Returns
Promise
<
T
>
返回表示当前函数已执行完成的确认对象
Globals
"async
Queue"
Async
Queue
is
Empty
then
Generated using
TypeDoc
表示一个异步队列,用于串行执行多个异步任务