synchronize(retryOnInterrupt:)
Synchronize modified data and metadata to a permanent storage device.
This declaration is gated by at least one @_spi attribute.
func synchronize(retryOnInterrupt: Bool = true) -> Result<Void, Errno>
Parameters
- retryOnInterrupt
Whether the call should be retried on
Errno.interrupted
.
The corresponding C functions is fsync
.