added protected to onReadyToClaimTask method. regenerated api-report
Signed-off-by: Hao Luo <howlowck@gmail.com>
This commit is contained in:
@@ -799,6 +799,8 @@ export class TaskWorker {
|
||||
// (undocumented)
|
||||
static create(options: CreateWorkerOptions): Promise<TaskWorker>;
|
||||
// (undocumented)
|
||||
protected onReadyToClaimTask(): Promise<void>;
|
||||
// (undocumented)
|
||||
runOneTask(task: TaskContext): Promise<void>;
|
||||
// (undocumented)
|
||||
start(): void;
|
||||
|
||||
@@ -117,7 +117,7 @@ export class TaskWorker {
|
||||
})();
|
||||
}
|
||||
|
||||
onReadyToClaimTask(): Promise<void> {
|
||||
protected onReadyToClaimTask(): Promise<void> {
|
||||
if (this.taskQueue.pending < this.options.concurrentTasksLimit) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user