Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed 3 Typos #1019

Merged
merged 3 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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