async 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/node.rb +2 -0
- data/lib/async/scheduler.rb +5 -3
- data/lib/async/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: 2d64eb10a6e308731e79afd4591092d17ef5d4ffca9e40d9ee128a1d14b30669
|
4
|
+
data.tar.gz: 8c5fda19ac8eb203bdd6a27100f90b47295d1ff882811d78da257342ae240258
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1b8f7644eda45639f9a53e314b195ad2955b10358148edf6e698be89cb7232c22be15d3a0214f14a2053bc4a6e3e78683f1ef22d1da02a1fc7cd83e1a71b2fc
|
7
|
+
data.tar.gz: 109375f5cd3c217341316c4b5f390d7a2a57bda847bbaa8d98ec13e93fa9dbc6905978bad00641182b7d4daf4e87c0ac7286b43ca5a6522f0610b37e8206d7df
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/async/node.rb
CHANGED
data/lib/async/scheduler.rb
CHANGED
@@ -42,10 +42,12 @@ module Async
|
|
42
42
|
|
43
43
|
# @public Since `stable-v1`.
|
44
44
|
def close
|
45
|
-
#
|
46
|
-
self.terminate
|
45
|
+
# It's critical to stop all tasks. Otherwise they might be holding on to resources which are never closed/released correctly.
|
46
|
+
until self.terminate
|
47
|
+
self.run_once
|
48
|
+
end
|
47
49
|
|
48
|
-
Kernel
|
50
|
+
Kernel.raise "Closing scheduler with blocked operations!" if @blocked > 0
|
49
51
|
|
50
52
|
# We depend on GVL for consistency:
|
51
53
|
# @guard.synchronize do
|
data/lib/async/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -56,7 +56,7 @@ cert_chain:
|
|
56
56
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
57
57
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
58
58
|
-----END CERTIFICATE-----
|
59
|
-
date: 2023-03-
|
59
|
+
date: 2023-03-11 00:00:00.000000000 Z
|
60
60
|
dependencies:
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: console
|
metadata.gz.sig
CHANGED
Binary file
|