Watcher
No overview available.
Methods
WaitToStart()
@classmethod
def WaitToStart(
ctx: context.Context
) - > error
Waits for the watcher to start its operation. This method blocks until the watcher has successfully initialized or an error occurs.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for controlling cancellation and timeouts during the wait operation. |
Returns
| Type | Description |
|---|---|
error | An error if the watcher fails to start, otherwise nil. |
WaitToExit()
@classmethod
def WaitToExit(
ctx: context.Context
) - > error
Waits for the watcher to complete its execution and exit. This method blocks until the watcher has finished its work or an error signals its termination.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for controlling cancellation and timeouts during the wait operation. |
Returns
| Type | Description |
|---|---|
error | An error if the watcher encounters an issue during its exit, otherwise nil. |