pub fn lk_open(dir: Option<&Path>, create: bool) -> Result<Linkspace>
Expand description
open a linkspace runtime.
will look at path
| $LK_DIR | ‘$HOME/linkspace’
A runtime is used in many arguments. Most notable to lk_save, lk_get, and lk_watch packets. The database is shared across threads and processes. The runtime (i.e. lk_watch) is not. The first call (per thread) sets the default instance for functions like lk_eval (see varscope for more options). Moving an open runtime across threads is not supported.