swirl_utils (swirl v0.2.8)

View Source

Summary

Functions

lookup(Key, List)

-spec lookup(term(), [{term(), term()}]) -> term().

lookup(Key, List, Default)

-spec lookup(term(), [{term(), term()}], term()) -> term().

new_timer(Time, Msg)

-spec new_timer(pos_integer(), term()) -> erlang:reference().

new_timer(Time, Msg, _)

-spec new_timer(pos_integer(), term(), boolean()) -> erlang:reference().

proplist_to_record(Proplist, Record)

-spec proplist_to_record([{atom(), term()}], atom()) -> tuple().

record_to_proplist(Flow)

safe_dict_fetch(Key, Dict)

safe_ets_delete(TableId)

safe_ets_increment(TableId, Key, Counters)

safe_ets_lookup_element(TableId, Key)

tab2list(Tid)

unix_tstamp_ms()

update_op(Counters)

uuid()