Tmp.Worker (Tmp v0.3.1)

View Source

Executes the function given to Tmp.dir/3 in a temporary GenServer process. This module is not typically used directly.

This module is responsible for:

  • Creating a temporary directory
  • Ensuring the directory is monitored for cleanup

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

execute(monitor, path, function, timeout)

@spec execute(GenServer.name(), Path.t(), function(), timeout()) :: term()

start_link(state)