add class `tick` for explicit interleaving of actions on separate threads