Reference Source
public class | source

Executor

Executor allows to submit jobs for execution. Jobs are queued when the maxJobCount is exceeded.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

idsToDo: *[]

public
public
public
public

jobsToDo: {}

public
public
public
public

resolve: *

public

Method Summary

Public Methods
public

add(job: *): *

public
public

done()

public

jobDone(job: *)

public

setProgressListener(progressListener: *)

public

startJob(job: *): *

public

Public Constructors

public constructor() source

Public Members

public idsToDo: *[] source

public jobCounter: number source

public jobsDone: number source

public jobsRunning: {} source

public jobsToDo: {} source

public maxJobCount: * source

public nrRunning: number source

public progressListener: * source

public resolve: * source

public terminationPromise: * source

Public Methods

public add(job: *): * source

Params:

NameTypeAttributeDescription
job *

Return:

*

public awaitTermination(): * source

Return:

*

public done() source

public jobDone(job: *) source

Params:

NameTypeAttributeDescription
job *

public setProgressListener(progressListener: *) source

Params:

NameTypeAttributeDescription
progressListener *

public startJob(job: *): * source

Params:

NameTypeAttributeDescription
job *

Return:

*

public updateProgress() source