Skip to content

Commit 52ec2d9

Browse files
benjamintanweihaojosevalim
authored andcommitted
Add link to Supervisor cheat sheet (elixir-lang#855)
1 parent 04d06e8 commit 52ec2d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

getting-started/mix-otp/supervisor-and-application.markdown

+3-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ end
364364

365365
Now, if the registry worker crashes, both the registry and the "rest" of `KV.Supervisor`'s children (i.e. `KV.Bucket.Supervisor`) will be restarted. However, if `KV.Bucket.Supervisor` crashes, `KV.Registry` will not be restarted, because it was started prior to `KV.Bucket.Supervisor`.
366366

367-
There are other strategies and other options that could be given to `worker/2`, `supervisor/2` and `supervise/2` functions, so don't forget to check both [`Supervisor`](/docs/stable/elixir/Supervisor.html) and [`Supervisor.Spec`](/docs/stable/elixir/Supervisor.Spec.html) modules.
367+
There are other strategies and other options that could be given to `worker/2`, `supervisor/2` and `supervise/2` functions, so don't forget to check both [`Supervisor`](/docs/stable/elixir/Supervisor.html) and [`Supervisor.Spec`](/docs/stable/elixir/Supervisor.Spec.html) modules.
368+
369+
To help developers remember how to work with Supervisors and its convenience functions, [Benjamin Tan Wei Hao](http://benjamintan.io/) has created a [Supervisor cheat sheet](https://raw.githubusercontent.com/benjamintanweihao/elixir-cheatsheets/master/Supervisor_CheatSheet.pdf).
368370

369371
There are two topics left before we move on to the next chapter.
370372

0 commit comments

Comments
 (0)