File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,10 @@ def connect(parent: Task.current)
6363 # Automatically reconnects when the connection fails, with random backoff.
6464 # This is useful for long-running clients that need to maintain a persistent connection.
6565 #
66- # @parameter parent [Async::Task] The parent task to run under.
67- def run
68- Sync do |task |
66+ # @yields {|connection| ...} If a block is given, it will be called with the connection.
67+ # @returns [Async::Task] The task that runs the client.
68+ def run ( &block )
69+ Async ( transient : true ) do |task |
6970 loop do
7071 connection = connect!
7172
Original file line number Diff line number Diff line change 11# Releases
22
3+ ## Unreleased
4+
5+ - ` Client#run ` now returns an ` Async::Task ` (as it did in earlier releases).
6+
37## v0.3.0
48
59 - Add support for multi-hop proxying.
You can’t perform that action at this time.
0 commit comments