If you have a list of param, how do you compute multiple fibo at the same time and get the results in the same order?
final computer = Computer.create();
await computer.turnOn(
workersCount: 8, // nb CPU
);
var params = [2, 4, 54, 100, ...]
for (param in params) {
final result = await computer.compute(
fib,
param: param
);
}
here fib will be executed one by one witch is not what I want
If you have a list of param, how do you compute multiple fibo at the same time and get the results in the same order?
here fib will be executed one by one witch is not what I want