while (true) {
  const task = tasks().remove();
  execute(task);
}