Skip to content

IProgressFunction

Steve edited this page Apr 29, 2020 · 1 revision
export interface IProgressFunction {
    ctx: any,
    fn: (prg: QueueProgress | TaskProgress) => void
}
  • ctx: context to call the given progress function in
  • fn: the function to call each time the progress changes. See DEFAULT_PROGRESS_FUNCTION in src/FSIServerClient.ts for an example implementation.

You can use FSIServerClient.defaultProgress for a default implementation of a progress function that writes progress information to standard out.

TaskProgress holds the progress information including ETA if available.

Clone this wiki locally