Majic.Once (Majic v1.0.0) View Source
Contains convenience functions for one-off use.
Link to this section Summary
Functions
Runs a one-shot process without supervision.
Link to this section Functions
Specs
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"}