error By Non Zero Predicate
inline fun errorByNonZeroPredicate(msg: String, predicate: () -> Long): Long
Content copied to clipboard
Predicate an error if more than 0, based on the return value of the POSIX function. Usually those functions are supposed to return zero or an error.
Receiver
Return
On success returns the result as an Int.
Parameters
msg
Describing the action that may go wrong.
predicate
Lambda carrying out the POSIX operation.