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 May 20, 2019, 6:46 p.m.