Wobserver v0.1.4 Wobserver.Util.Helper

Helper functions and JSON encoders.

Summary

Functions

Formats function information as readable string

Parallel map implemented with Task

Converts Strings to module names or atoms

Functions

format_function(name)
format_function(nil | {atom, atom, integer} | atom) ::
  String.t |
  nil

Formats function information as readable string.

Example:

iex> format_function {Logger, :log, 2}
"Logger.log/2"
iex> format_function :format_function
"format_function"
iex> format_function nil
nil
parallel_map(enum, function)
parallel_map(enum :: list, function :: (... -> any)) :: list

Parallel map implemented with Task.

string_to_module(module)
string_to_module(module :: String.t) :: atom

Converts Strings to module names or atoms.