Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/operation-graph > IWatchLoopOptions

IWatchLoopOptions interface

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Callbacks for the watch loop.

Signature:

export interface IWatchLoopOptions 

Properties

Property

Modifiers

Type

Description

executeAsync

(state: IWatchLoopState) => Promise<OperationStatus>

(BETA) Callback that performs the core work of a single iteration.

onAbort

() => void

(BETA) Logging callback when a run is aborted.

onBeforeExecute

() => void

(BETA) Logging callback immediately before execution occurs.

onRequestRun

OperationRequestRunCallback

(BETA) Logging callback when a run is requested (and hasn't already been).