Skip to content

Commit

Permalink
UPDATE: moduledoc
Browse files Browse the repository at this point in the history
  • Loading branch information
seungjinstord committed Dec 13, 2023
1 parent 13f018a commit 8020ffc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/buffy/throttle_and_timed.ex
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,14 @@ defmodule Buffy.ThrottleAndTimed do
children = [
...
{true,
Task.child_spec(fn ->
for x <- 1..10, do: MyModuleUsingThrottleAndTimed.throttle(some: "value", x: x)
end)}
Supervisor.child_spec(
{Task,
fn ->
for x <- 1..10, do: MyModuleUsingThrottleAndTimed.throttle(some: "value", x: x)
end},
id: MyModuleUsingThrottleAndTimedInit,
restart: :temporary
)}
]
...
```
Expand Down

0 comments on commit 8020ffc

Please sign in to comment.