跳至主要內容

Class: pipeline

muzzik小于 1 分钟

index / task / pipeline

Class: pipeline

task.pipeline

任务管线

Remarks

顺序执行任务

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new pipeline()

Properties

event

event: event_target<event_protocol>

事件

Defined in

assets/@framework/task/mk_task_pipeline.ts:29open in new window

Accessors

pause_b

get pause_b(): boolean

暂停状态

Returns

boolean

Defined in

assets/@framework/task/mk_task_pipeline.ts:31open in new window

set pause_b(value_b_): void

Parameters

NameType
value_b_boolean

Returns

void

Defined in

assets/@framework/task/mk_task_pipeline.ts:35open in new window

Methods

add

add(task_f_): Promise<void>

添加任务

Parameters

NameTypeDescription
task_f_Function任务函数

Returns

Promise<void>

当前任务 Promise

Defined in

assets/@framework/task/mk_task_pipeline.ts:57open in new window

📣 觉得很赞?分享给你的朋友吧!