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
@spec perform(Majic.target(), [Majic.Server.start_option()], timeout()) :: Majic.result()
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"}