Skip to main content

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

NameTypeDescription
ctxcontext.ContextThe context for controlling cancellation and timeouts during the wait operation.

Returns

TypeDescription
errorAn 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

NameTypeDescription
ctxcontext.ContextThe context for controlling cancellation and timeouts during the wait operation.

Returns

TypeDescription
errorAn error if the watcher encounters an issue during its exit, otherwise nil.