Closed Beyond-Chao closed 5 years ago
Disk is synchronous by design, in most cases I/O operations take milliseconds to execute so it's not worth executing outside the main thread, however Apple recommends running any I/O operations on a separate thread. I leave it up to you to decide to use Disk synchronously or on a different thread. Check out the Large Files section in the README.
use serial DispatchQueue to dispatch IO task will be better ?