runAsync method ✓ 100.0%
Last updated: 2026-03-01T23:25:47.106Z
Metrics
LOC: 7
Complexity: 2
Params: 1
Coverage: 100.0% (4/4 lines, 5x executed)
Signature
runAsync(fields: FormField[]): : Promise<FormField[]>
Summary
Async run — awaits every classifier (including Chrome AI) per field, then returns all fields at once.
Source Code
async runAsync(fields: FormField[]): Promise<FormField[]> {
const pipeline = new DetectionPipeline(this._classifiers);
for (const field of fields) {
this.applyResult(field, await pipeline.runAsync(field));
}
return fields;
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| DetectionPipeline | instantiates |
No incoming dependencies.