Skip to content

Commit

Permalink
Prefer Async do.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Feb 8, 2019
1 parent 2e9b88b commit a378837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/chat/client.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env ruby

require 'async/reactor'
require 'async'
require 'async/io/stream'
require 'async/http/url_endpoint'
require 'async/websocket/client'

USER = ARGV.pop || "anonymous"
URL = ARGV.pop || "ws://localhost:9292"

Async::Reactor.run do |task|
Async do |task|
stdin = Async::IO::Stream.new(
Async::IO::Generic.new($stdin)
)
Expand Down
4 changes: 2 additions & 2 deletions examples/middleware/client.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env ruby

require 'async/reactor'
require 'async'
require 'async/io/stream'
require 'async/http/url_endpoint'
require 'async/websocket/client'

USER = ARGV.pop || "anonymous"
URL = ARGV.pop || "ws://localhost:9292"

Async::Reactor.run do |task|
Async do |task|
stdin = Async::IO::Stream.new(
Async::IO::Generic.new($stdin)
)
Expand Down

0 comments on commit a378837

Please sign in to comment.