currently, the implementation of the write series function is concurrency-unsafe, it is recommended to introduce a concurrency-safe write function