import { RawTask as e } from "./RawTask.es.js";
class c {
  create(t) {
    const s = this.freeTasks, r = s.length ? s.pop() : new e(
      this.onError,
      (o) => s[s.length] = o
    );
    return r.task = t, r;
  }
  constructor(t) {
    this.onError = t, this.freeTasks = [];
  }
}
export {
  c as TaskFactory
};
//# sourceMappingURL=TaskFactory.es.js.map
