根据this的说法,任务可以是异步的。在我的例子中,我有一些任务,每个任务都有几个按顺序运行的子任务(或目标)。
例如:
copy: {
foo: {
// concat task "foo" target options and files go here.
},
bar: {
// concat task "bar" target options and files go here.
}
}但是copy:foo耗时太长,所以我希望copy的子任务并行运行。有可能吗?
发布于 2014-02-19 22:19:07
是。使用
setTimeout(your_func1, 0);
setTimeout(your_func2, 0)https://stackoverflow.com/questions/21882992
复制相似问题