Encapsulates a worker process that invokes a Flect tool and collects its exit code. Can be supervised by an OTP supervisor.
code_change(_old, state, _extra)Source
handle_call(arg1, arg2, state)Source
Starts a worker process linked to the parent process. Returns
work(pid, cfg, timeout // :infinity)
Instructs the given worker process to execute a Flect tool as specified by the given configuration. Returns the exit code of the tool.
pid must be the PID of a
cfg must be a valid
timeout must be
:infinity or a millisecond
value specifying how much time to wait for the tool to complete.