refactor(worker): utiliser async