feat: update command and complate task

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-09-21 14:58:00 +08:00
parent cdd5f2d250
commit 13e9f0a5af
5 changed files with 105 additions and 17 deletions

View File

@ -1,9 +0,0 @@
export namespace task {
export const Task = Symbol('Task')
export interface Task {
run(func: Function): void;
async(func: Function): void;
later(tick: number): task.Task;
timer(tick: number): task.Task;
}
}