Resolved the datarace on publication of a measurement