Skip to content

Commit

Permalink
Change wording in README.md (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz authored Nov 12, 2023
1 parent a0aa89d commit 792fbd2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ defmodule PortPool do
@doc ~S"""
Executes a given command against a port kept by the pool.
First we start the port:
First we start a pool of ports:
iex> child = {NimblePool, worker: {PortPool, :cat}, name: PortPool}
iex> Supervisor.start_link([child], strategy: :one_for_one)
Now we can run commands against the pool of ports:
Now we can run commands against the ports in the pool:
iex> PortPool.command(PortPool, "hello\n")
"hello\n"
Expand Down Expand Up @@ -123,12 +123,12 @@ defmodule HTTP1Pool do
@doc ~S"""
Executes a given command against a connection kept by the pool.
First we start the connection:
First we start the pool:
child = {NimblePool, worker: {HTTP1Pool, {:https, "elixir-lang.org", 443}}, name: HTTP1Pool}
Supervisor.start_link([child], strategy: :one_for_one)
Then we can access it:
Then we can use the connections in the pool:
iex> HTTP1Pool.get(HTTP1Pool, "/")
{:ok, %{status: 200, ...}}
Expand Down

0 comments on commit 792fbd2

Please sign in to comment.