• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visgl / loaders.gl / 25603943277

09 May 2026 02:49PM UTC coverage: 60.005%. Remained the same
25603943277

push

github

web-flow
chore: Add Node 26 to CI (#3420)

12967 of 23938 branches covered (54.17%)

Branch coverage included in aggregate %.

26843 of 42406 relevant lines covered (63.3%)

14662.34 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.21
/modules/loader-utils/src/lib/worker-loader-utils/encode-with-worker.ts
1
import {WorkerFarm} from '@loaders.gl/worker-utils';
2
import {Writer, WriterOptions} from '../../writer-types';
3
import {isBrowser} from '../env-utils/globals';
4

5
/**
6
 * Determines if a loader can parse with worker
7
 * @param loader
8
 * @param options
9
 */
10
export function canEncodeWithWorker(writer: Writer, options?: WriterOptions) {
11
  if (!WorkerFarm.isSupported()) {
55!
12
    return false;
×
13
  }
14

15
  const nodeWorkers = options?._nodeWorkers ?? options?.core?._nodeWorkers;
55✔
16
  const useWorkers = options?.worker ?? options?.core?.worker;
55✔
17

18
  // Node workers are still experimental
19
  if (!isBrowser && !nodeWorkers) {
55✔
20
    return false;
23✔
21
  }
22

23
  return Boolean(writer.worker && useWorkers);
32!
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc