INNER CODE UNIT · TypeScript

AsyncTask

MCSManager/MCSManager · daemon/src/service/async_task_service/index.ts:18

export abstract class AsyncTask extends EventEmitter implements IAsyncTask, IExecutable {
  public static readonly STATUS_STOP = 0;
  public static readonly STATUS_RUNNING = 1;
  public static readonly STATUS_ERROR = -1;

  public taskId: string = "";
  public type: string = "";

  public errorInfo?: Error;

  protected _status = AsyncTask.STATUS_STOP;

  constructor() {
    super();
  }

  public async start() {
    this._status = AsyncTask.STATUS_RUNNING;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…