async-container 0.37.0 → 0.38.0
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/container/forked.rb +3 -2
- data/lib/async/container/hybrid.rb +1 -1
- data/lib/async/container/version.rb +1 -1
- data/readme.md +4 -4
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: 2afc84589d803bb2b4205a0da9397039659626c90e88b6b530cba4e1f1e51414
|
|
4
|
+
data.tar.gz: 8f1d086baf92d980511ed2f7ce1e165a32bd92aec8302673ee67489200e87519
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c3bf95bc47ca93403e14f6c517f77f1b7c48f033d63e451fd6ee7f731b793d6220cff578cda76446055badb75281ea9517f3da26c4abae4cb49e6a87a275e5b
|
|
7
|
+
data.tar.gz: ca937e711802c41d6f397d02e267308b5123385369e739b52fd6cda74aca3f3a4af1f9d0d12643759ee325db76e8247f6fd1b35741b4b592200086dfc5f22c90
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -101,7 +101,8 @@ module Async
|
|
|
101
101
|
def self.fork(**options)
|
|
102
102
|
# $stderr.puts fork: caller
|
|
103
103
|
self.new(**options) do |process|
|
|
104
|
-
|
|
104
|
+
# CRuby makes the currently executing fiber the root fiber in the child process and clears its resuming fiber, so the caller's stack can be collected without forking from a separate native thread:
|
|
105
|
+
::Fiber.new(blocking: true) do
|
|
105
106
|
::Process.fork do
|
|
106
107
|
# We use `Thread.current.raise(...)` so that exceptions are filtered through `Thread.handle_interrupt` correctly.
|
|
107
108
|
Signal.trap(:INT){::Thread.current.raise(Interrupt)}
|
|
@@ -119,7 +120,7 @@ module Async
|
|
|
119
120
|
exit!(1)
|
|
120
121
|
end
|
|
121
122
|
end
|
|
122
|
-
end.
|
|
123
|
+
end.resume
|
|
123
124
|
end
|
|
124
125
|
end
|
|
125
126
|
|
data/readme.md
CHANGED
|
@@ -28,6 +28,10 @@ Please see the [project documentation](https://socketry.github.io/async-containe
|
|
|
28
28
|
|
|
29
29
|
Please see the [project releases](https://socketry.github.io/async-container/releases/index) for all releases.
|
|
30
30
|
|
|
31
|
+
### v0.38.0
|
|
32
|
+
|
|
33
|
+
- Fork child processes from a clean fiber stack rather than a short-lived native thread, preserving child garbage collection while improving compatibility with native libraries.
|
|
34
|
+
|
|
31
35
|
### v0.37.0
|
|
32
36
|
|
|
33
37
|
- Rename `ASYNC_CONTAINER_GRACEFUL_TIMEOUT` to `ASYNC_CONTAINER_GRACEFUL_STOP` and apply it at the controller level as `GRACEFUL_STOP`. `Group#stop` now only applies the shutdown policy it is given.
|
|
@@ -64,10 +68,6 @@ Please see the [project releases](https://socketry.github.io/async-container/rel
|
|
|
64
68
|
|
|
65
69
|
- Add `Async::Container::Generic#stopping?` so that policies can more accurately track the state of the container.
|
|
66
70
|
|
|
67
|
-
### v0.33.0
|
|
68
|
-
|
|
69
|
-
- Add `Policy#make_statistics` to allow policies to customize statistics initialization.
|
|
70
|
-
|
|
71
71
|
## Contributing
|
|
72
72
|
|
|
73
73
|
We welcome contributions to this project.
|
data/releases.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Releases
|
|
2
2
|
|
|
3
|
+
## v0.38.0
|
|
4
|
+
|
|
5
|
+
- Fork child processes from a clean fiber stack rather than a short-lived native thread, preserving child garbage collection while improving compatibility with native libraries.
|
|
6
|
+
|
|
3
7
|
## v0.37.0
|
|
4
8
|
|
|
5
9
|
- Rename `ASYNC_CONTAINER_GRACEFUL_TIMEOUT` to `ASYNC_CONTAINER_GRACEFUL_STOP` and apply it at the controller level as `GRACEFUL_STOP`. `Group#stop` now only applies the shutdown policy it is given.
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: async-container
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.38.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -49,14 +49,14 @@ dependencies:
|
|
|
49
49
|
requirements:
|
|
50
50
|
- - "~>"
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '2.
|
|
52
|
+
version: '2.44'
|
|
53
53
|
type: :runtime
|
|
54
54
|
prerelease: false
|
|
55
55
|
version_requirements: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
|
57
57
|
- - "~>"
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: '2.
|
|
59
|
+
version: '2.44'
|
|
60
60
|
executables: []
|
|
61
61
|
extensions: []
|
|
62
62
|
extra_rdoc_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|