Run tasks in parrallel #6
Comments
Hey! Do you have a real example when it's really needed? Right now you can use it this way: export function test() {
return start(
Promise.all([
start(loadNames('./names.txt')),
start(loadNames('./names2.txt'))
]),
hello('Hello'),
logName()
)
} I'll take a closer look at your PR soon, thanks for that. |
It's not really necessary when I saw your solution. Thanks. |
Forwarding arrays to Promise.all might be a good quick solution |
the only thing that stops me from implementing this is an issue with loggers. I mean it will be a mess of messages from different tasks w/o any understandable order... |
so I'm gonna try something like this as a first step: before:
after:
|
That's cool idea and I think each-promise can come in great help here :) So then |
well, I finally have something. there will be a special tasks wrapper (soon) called export const test = () => start(
concurrent(
task1(),
task2(),
),
task3(),
task4()
} with a simple
|
Yea, it isn't. But in scenario where we have one file in one thread, we still have serial and parallel flows.
yea, wrapper looks good way to go |
it's better late than never ✨ https://github.com/start-runner/concurrent |
got this working with true parallel mode through export const build = (/* my, super, args */) => start(
env('NODE_ENV', 'production'),
parallel(
makeDist,
makeES,
makeLib
)
); also:
coming soon. weee. |
Hello Kir,
As I tried, we can not do something like this:
It's nice if you can make it possible.
The text was updated successfully, but these errors were encountered: