async-bus 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f14db24c29a1d9ed24379631bcde98474533dd61397d6cf273bdeea5feabdb42
4
- data.tar.gz: 2a1cf6b2528af9626010b95bfde0a4decf985518707c4469dd69f102ad000582
3
+ metadata.gz: df5f9eee987b7c64e94b521cfdcee2e83bba9657f5155084fb105b02adc9d84d
4
+ data.tar.gz: 76a6ac9c261fd91a3a8f9cc3f20dffe5ee7036a6b1b4a07a64d66170004e39f7
5
5
  SHA512:
6
- metadata.gz: 23697b989abd95dc326f2ad370ca68c42488a5eb4ddc01efd87e6fd3b102d7221ff5dc872a13c8f400efcf39d7477d8d63980f9eb097a0a6e0456de28106ab18
7
- data.tar.gz: bbf61748ccd9685a6708eacf24e32d48b76d9baef531c95a70975427b40afa0552ee05b4a3600900025342bd4ac98c39d1baec4db47482795134b64f55ab3bfc
6
+ metadata.gz: 985a0ac762db79cf5feb87fa3c50aad32bdf627b26f86e015b60d553d146c843023ea7287617834151a8074e23ca87dcc8877f3b323db89994dc04dec7b54ef0
7
+ data.tar.gz: 1f1e8ebda1dd9036a9452a95c410c1232316041600dd51e8b4f820ea99e67f8e3b7dc245f9cf3870ea62d7253cfd85ee1fb7e42ccbaf25248fce4b38086850e0
checksums.yaml.gz.sig CHANGED
Binary file
@@ -63,9 +63,10 @@ module Async
63
63
  # Automatically reconnects when the connection fails, with random backoff.
64
64
  # This is useful for long-running clients that need to maintain a persistent connection.
65
65
  #
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|
69
70
  loop do
70
71
  connection = connect!
71
72
 
@@ -7,6 +7,6 @@
7
7
  module Async
8
8
  # @namespace
9
9
  module Bus
10
- VERSION = "0.3.0"
10
+ VERSION = "0.3.1"
11
11
  end
12
12
  end
data/readme.md CHANGED
@@ -23,6 +23,10 @@ Please see the [project documentation](https://socketry.github.io/async-bus/) fo
23
23
 
24
24
  Please see the [project releases](https://socketry.github.io/async-bus/releases/index) for all releases.
25
25
 
26
+ ### v0.3.1
27
+
28
+ - `Client#run` now returns an `Async::Task` (as it did in earlier releases).
29
+
26
30
  ### v0.3.0
27
31
 
28
32
  - Add support for multi-hop proxying.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.3.1
4
+
5
+ - `Client#run` now returns an `Async::Task` (as it did in earlier releases).
6
+
3
7
  ## v0.3.0
4
8
 
5
9
  - Add support for multi-hop proxying.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file