File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,13 @@ Functions that invoke a callback synchronously in some cases and asynchronously
15
15
others create forks in the execution path that make your code less predictable.
16
16
```
17
17
18
- But we ignore this warning in Elixir :) , because there is only one execution path
19
- for a delayed job - messages which your process will handle when it wants to.
18
+ But, in Elixir, we laugh at this warning :) , because there is only one execution path
19
+ for an asynchronous job: messages sent to your process which can then handle when it wants to.
20
20
21
21
For example, the Logger works like this in Elixir. If the backlog of things to log is
22
22
small, then it completes synchronously, otherwise it will decide to switch to
23
23
asynchronous mode, just like magic.
24
24
25
-
26
25
Here's what the code invoked looks like:
27
26
```
28
27
result = Parallel.map_or_pmap_or_apmap((0..10), fn(x) -> x * x end)
You can’t perform that action at this time.
0 commit comments