Skip to content

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? #21

@stephane-archer

Description

@stephane-archer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions