View Source ebus_common (ebus v0.3.0)
Link to this section Summary
Functions
Equivalent to build_name(L, <<"_">>).
Build a name given the list of terms, then they are transformed to binary and concatenated by
Separator.Equivalent to keyfind(Key, TupleList, nil).
Searches into the list of tuples
TupleList for a tuple whose Nth element compares equal to Key. Returns Tuple's value if such a tuple is found, otherwise Default.Returns a random element from given list
L.Converts any type to atom.
Converts any type to binary.
Converts any type to float.
Converts any type to integer.
Converts any type to list.
Equivalent to wait_until(Fun, 50).
Equivalent to wait_until(Fun, Retries, 100).
Link to this section Functions
Equivalent to build_name(L, <<"_">>).
-spec build_name([any()], iodata()) -> atom().
Separator.
Equivalent to keyfind(Key, TupleList, nil).
-spec keyfind(term(), [tuple()], term()) -> term().
TupleList for a tuple whose Nth element compares equal to Key. Returns Tuple's value if such a tuple is found, otherwise Default.
-spec rand_elem([term()]) -> term().
L.
-spec to_atom(any()) -> atom().
-spec to_bin(any()) -> binary().
-spec to_float(any()) -> float().
-spec to_int(any()) -> integer().
-spec to_list(any()) -> list().
Equivalent to wait_until(Fun, 50).
Equivalent to wait_until(Fun, Retries, 100).
-spec wait_until(fun(), non_neg_integer(), timeout()) -> term().