Skip to content

Commit

Permalink
Improve moduledoc in Tmp.Worker
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz committed Jul 13, 2024
1 parent 8ec34fe commit 776d507
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/tmp/worker.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
defmodule Tmp.Worker do
@moduledoc """
Executes the function given to `Tmp.dir/3` in a GenServer process
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
"""

use GenServer, restart: :temporary
Expand Down

0 comments on commit 776d507

Please sign in to comment.