Module s2_env

Environment.

Description

Environment.

Data Types

alist()

alist(A, B) = [{A, B}]

sys()

sys() = [{App::atom(), Param::atom(), Val::term()}]

thunk()

thunk(A) = fun(() -> A)

Function Index

ensure_started/1Ensure that Apps are started.
get_arg/3get_arg(Args, App, Param, Def) is the value associated with Param in either Args or App's environment.
get_arg/4get_arg(Args, App, Param, Def) is the value associated with Param in either Args or App's environment; or Def.
with_sys/2with_sys(Sys, Thunk) is the result of calling Thunk in Sys.

Function Details

ensure_started/1

ensure_started(App::atom() | [atom()]) -> ok | no_return()

Ensure that Apps are started.

get_arg/3

get_arg(Args::alist(A, B), App::atom(), A) -> B

get_arg(Args, App, Param, Def) is the value associated with Param in either Args or App's environment.

get_arg/4

get_arg(Args::alist(A, B), App::atom(), A, B) -> B

get_arg(Args, App, Param, Def) is the value associated with Param in either Args or App's environment; or Def.

with_sys/2

with_sys(Sys::sys(), Thunk::thunk(A)) -> A

with_sys(Sys, Thunk) is the result of calling Thunk in Sys.


Generated by EDoc