Global Functionswift-nio 2.72.0_NIOFileSystem
valueOrErrno(retryOnInterrupt:_:)
Returns a Result
representing the value returned from the given closure or an Errno
if that value was -1.
This declaration is gated by at least one @_spi attribute.
func valueOrErrno<I>(retryOnInterrupt: Bool = true, _ fn: () -> I) -> Result<I, Errno> where I : FixedWidthInteger
If desired this function can call the closure in a loop until it does not result in Errno
being .interrupted
.