Nolix logo

a Java library for business and science

← Nolix Sequencer

Tutorial: Sequencer

Run a function in background

Sequencer.runInBackground(() -> doCalculations());

Check if a background run is finished

Future future = Sequencer.runInBackground(() -> doCalculations());
...
if (future.isFinishedSuccessfully()) {
  ...
}

Wait for 500 milliseconds

Sequencer.waitForMilliseocnds(500);

Copyright © 2021 Silvan Wyss