We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bea1c6c commit 60d8256Copy full SHA for 60d8256
lib/elixir/lib/process.ex
@@ -219,6 +219,16 @@ defmodule Process do
219
220
Inlined by the compiler.
221
222
+ > #### Note {: .info }
223
+ >
224
+ > The functions `Kernel.exit/1` and `Process.exit/2` are
225
+ > named similarly but provide very different functionalities. The
226
+ > `Kernel:exit/1` function should be used when the intent is to stop the current
227
+ > process while `Process:exit/2` should be used when the intent is to send an
228
+ > exit signal to another process. Note also that `Kernel:exit/1` raises an
229
+ > exception that can be caught while `Process:exit/2` does not cause any
230
+ > exception to be raised.
231
+
232
## Examples
233
234
Process.exit(pid, :kill)
0 commit comments