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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/bus/client.rb +4 -3
- data/lib/async/bus/version.rb +1 -1
- data/readme.md +4 -0
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df5f9eee987b7c64e94b521cfdcee2e83bba9657f5155084fb105b02adc9d84d
|
|
4
|
+
data.tar.gz: 76a6ac9c261fd91a3a8f9cc3f20dffe5ee7036a6b1b4a07a64d66170004e39f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 985a0ac762db79cf5feb87fa3c50aad32bdf627b26f86e015b60d553d146c843023ea7287617834151a8074e23ca87dcc8877f3b323db89994dc04dec7b54ef0
|
|
7
|
+
data.tar.gz: 1f1e8ebda1dd9036a9452a95c410c1232316041600dd51e8b4f820ea99e67f8e3b7dc245f9cf3870ea62d7253cfd85ee1fb7e42ccbaf25248fce4b38086850e0
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/async/bus/client.rb
CHANGED
|
@@ -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
|
-
# @
|
|
67
|
-
|
|
68
|
-
|
|
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
|
|
data/lib/async/bus/version.rb
CHANGED
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
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|