Skip to main content

do_try_lock

Function do_try_lock 

Source
pub(crate) fn do_try_lock(f: &File) -> Result<(), TryLockError>
Expand description

Try to lock f, without blocking.

On non-android, this just calls fs::File::try_lock.