with_lock: Run expression with a lock file set

Description Usage Arguments Value

View source: R/util.R

Description

Run expr after adding a lock - finally remove the lock

Usage

1
with_lock(expr, lock_file = getOption("lock_file", "service.lock"))

Arguments

expr

The expression to run

lock_file

The path to the lock file

Value

the return value of the expression


henfiber/later documentation built on June 6, 2017, 2:18 a.m.