Skip to content

Commit

Permalink
Merge pull request #1019 from dr-acc/fix_typo
Browse files Browse the repository at this point in the history
Fixed 3 Typos
  • Loading branch information
BrooklinJazz committed Jul 20, 2023
2 parents 3787b6b + 1b9f266 commit 62592cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exercises/process_drills.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Use [Process.send_after/4](https://hexdocs.pm/elixir/Process.html#send_after/4)

```

Use [Process.spawn/3](https://hexdocs.pm/elixir/Process.html#spawn/3) to and [receive](https://hexdocs.pm/elixir/Kernel.SpecialForms.html#receive/1) to spawn a process that waits to receive a message. Use [Process.send_after/4](https://hexdocs.pm/elixir/Process.html#send_after/4) to send the spawned process a message after two seconds.
Use [Process.spawn/3](https://hexdocs.pm/elixir/Process.html#spawn/3) and [receive](https://hexdocs.pm/elixir/Kernel.SpecialForms.html#receive/1) to spawn a process that waits to receive a message. Use [Process.send_after/4](https://hexdocs.pm/elixir/Process.html#send_after/4) to send the spawned process a message after two seconds.

```elixir

Expand Down
2 changes: 1 addition & 1 deletion reading/genservers.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ GenServer.cast(pid, :slow_increment)

## Concurrency

To have concurrent code, we simply need two GenServers. Notice both messages below finish at the same time because each is being processes concurrently.
To have concurrent code, we simply need two GenServers. Notice both messages below finish at the same time because each is being processed concurrently.

> If you have fewer CPU cores than processes, concurrent code does not run in **parallel**, so while code gains the benefits of task-switching typically giving the illusion of running in parallel, they will not actually process in parallel at the same time.
Expand Down
2 changes: 1 addition & 1 deletion reading/supervisors.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ flowchart TD
class P2,P3,..,Pn restarted
```

P2 crashed, the child processes after it in the start order are terminated, then P2 and the other terminated child processes are are restarted.
P2 crashed, the child processes after it in the start order are terminated, then P2 and the other terminated child processes are restarted.

## Restart Strategy Examples

Expand Down

0 comments on commit 62592cf

Please sign in to comment.