pub(crate) fn try_lock_exclusive(file: &File) -> Result<bool>Expand description
Non-blocking lock_exclusive: Ok(true) when the lock was taken,
Ok(false) when another holder has it. For waiters that must stay
cancellable (poll this instead of blocking in lock_exclusive).