@@ -61,15 +61,15 @@ Replace all references to `Async::Container::Supervisor` with `Async::Service::S
6161include Async ::Container ::Supervisor ::Environment
6262include Async ::Container ::Supervisor ::Supervised
6363
64- Async ::Container ::Supervisor ::MemoryMonitor .new (...)
65- Async ::Container ::Supervisor ::ProcessMonitor .new (...)
64+ Async ::Container ::Supervisor ::MemoryMonitor .new
65+ Async ::Container ::Supervisor ::ProcessMonitor .new
6666
6767# After:
6868include Async ::Service ::Supervisor ::Environment
6969include Async ::Service ::Supervisor ::Supervised
7070
71- Async ::Service ::Supervisor ::MemoryMonitor .new (...)
72- Async ::Service ::Supervisor ::ProcessMonitor .new (...)
71+ Async ::Service ::Supervisor ::MemoryMonitor .new
72+ Async ::Service ::Supervisor ::ProcessMonitor .new
7373```
7474
7575### 4. Update Worker Service Setup
@@ -237,7 +237,7 @@ client.connect do |connection|
237237 # Direct call-based API:
238238 result = connection.call(do: :restart )
239239 result = connection.call(do: :status )
240- result = connection.call(do: :forward , operation: {... }, connection_id: " ..." )
240+ result = connection.call(do: :forward , operation: {do: :whatever }, connection_id: " ..." )
241241end
242242```
243243
@@ -253,7 +253,8 @@ client.connect do |connection|
253253
254254 # Worker operations use the worker controller:
255255 worker = connection[:worker ]
256- # Worker operations are available through the worker controller
256+ # Worker operations are available through the worker controller:
257+ worker.whatever
257258end
258259```
259260
0 commit comments