withLock


Description:

public bool withLock (owned WithFileLockFunc fn)

Executes callback while lock is held.

Parameters:

fn

callback executed under lock.

Returns:

callback result when lock acquisition succeeds.