The code here is referenced with [AppFlowy-Collab]. wait_next_millis make timestamp|sequenceis crdt/increased.
wait_next_millis