README.md in async-container-0.9.0 vs README.md in async-container-0.10.0
- old
+ new
@@ -23,15 +23,19 @@
$ gem install async
## Usage
```ruby
-container = Async::Container.new(concurrency: 8) do
- # 8 reactors will be spawned, probably in threads since it's the default policy.
+container = Async::Container::Threaded.new
+
+container.run(count: 8)
+ # 8 reactors will be spawned, in separate threads.
Server.new.run(...)
end
-container = Async::Container::Forked.new(concurrency: 8) do
+container = Async::Container::Forked.new
+
+container.run(count: 8) do
# 8 reactors will be spawned, in separate forked processes.
Server.new.run(...)
end
```