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 928f73a4bf
commit eb1bab7e76
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;
}
}