@osaedasia/oresume
Version:
A user-friendly library for generating complete Single Page Applications (SPAs)
2 lines (1 loc) • 416 B
JavaScript
import{WorkerService as e}from"./WorkerService.js";import{WebWorkerNotSupportedError as r}from"../../domain/exceptions/Task.js";class i{_taskService;_isWorkerAvailable;constructor(i){if(this._isWorkerAvailable="undefined"!=typeof Worker,!this._isWorkerAvailable)throw new r("Web Workers are not supported in this environnement.");this._taskService=new e(i)}get service(){return this._taskService}}export{i as Task};