If not, it can be done only by splitting the function into several functions, each of whose side effects can be performed atomically.

 
  • 如果不能的话,唯一的方法就是将函数分割为几个函数,以使得每一个分出来的函数能够原子性的完成一个副作用。
今日热词
目录 附录 查词历史