Skip to content

Commit

Permalink
Prefer Async over Async.run.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Sep 15, 2019
1 parent 25e8796 commit 0e06d55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ require 'async/http/endpoint'
require 'protocol/http2/client'
require 'pry'

Async.run do
Async do
endpoint = Async::HTTP::Endpoint.parse("https://www.google.com/search?q=kittens")

peer = endpoint.connect
Expand Down
2 changes: 1 addition & 1 deletion examples/http2/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
require 'protocol/http2/client'
require 'pry'

Async.run do
Async do
endpoint = Async::HTTP::Endpoint.parse("https://www.google.com/search?q=kittens")

peer = endpoint.connect
Expand Down
2 changes: 1 addition & 1 deletion examples/http2/requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

queries = ["apple", "orange", "teapot", "async"]

Async.run do
Async do
endpoint = Async::HTTP::Endpoint.parse("https://www.google.com")

peer = endpoint.connect
Expand Down

0 comments on commit 0e06d55

Please sign in to comment.