You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: getting_started/11.markdown
+5-2
Original file line number
Diff line number
Diff line change
@@ -105,14 +105,17 @@ The most common form of spawning in Elixir is actually via `spawn_link/1`. Befor
105
105
106
106
```iex
107
107
iex> spawn fn -> raise "oops" end
108
+
109
+
[error] Error in process <0.58.0> with exit value: ...
110
+
108
111
#PID<0.58.0>
109
112
```
110
113
111
-
Well... nothing happened. That's because processes are isolated. If we want the failure in one process to propagate to another one, we should link them. This can be done with `spawn_link/1`:
114
+
It merely logged an error but the spawning process is still running. That's because processes are isolated. If we want the failure in one process to propagate to another one, we should link them. This can be done with `spawn_link/1`:
112
115
113
116
```iex
114
117
iex> spawn_link fn -> raise "oops" end
115
-
#PID<0.60.0>
118
+
116
119
** (EXIT from #PID<0.41.0>) an exception was raised:
0 commit comments