Skip to content

Commit a48e476

Browse files
committed
Documentation.
1 parent a0304ab commit a48e476

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

lib/async/container/supervisor/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
module Async
1010
module Container
1111
module Supervisor
12+
# A client provides a mechanism to connect to a supervisor server in order to execute operations.
1213
class Client
1314
def initialize(endpoint: Supervisor.endpoint)
1415
@endpoint = endpoint

lib/async/container/supervisor/server.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
module Async
1313
module Container
1414
module Supervisor
15+
# The server represents the main supervisor process which is responsible for managing the lifecycle of other processes.
16+
#
17+
# There are various tasks that can be executed by the server, such as restarting the process group, and querying the status of the processes. The server is also responsible for managing the lifecycle of the monitors, which can be used to monitor the status of the connected workers.
1518
class Server
1619
def initialize(monitors: [], endpoint: Supervisor.endpoint)
1720
@monitors = monitors

lib/async/container/supervisor/worker.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
module Async
1010
module Container
1111
module Supervisor
12+
# A worker represents a long running process that can be controlled by the supervisor.
13+
#
14+
# There are various tasks that can be executed by the worker, such as dumping memory, threads, and garbage collection profiles.
1215
class Worker < Client
1316
def self.run(...)
1417
self.new(...).run

0 commit comments

Comments
 (0)