View Source Majic.Once (Majic v1.1.1)

Contains convenience functions for one-off use.

Summary

Functions

Runs a one-shot process without supervision.

Functions

Link to this function

perform(path, options \\ [], timeout \\ 30000)

View Source

Runs a one-shot process without supervision.

Useful in tests, but not recommended for actual applications.

Example

iex(1)> {:ok, result} = Majic.Once.perform(".")
iex(2)> result
%Majic.Result{content: "directory", encoding: "binary", mime_type: "inode/directory"}