Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

372 B
Raw Blame
import { afterAll } from "vitest";

import {
  createDocumentComputationPool,
  type DocumentComputation,
} from "../../src/document/computation-pool.js";

export function useDocumentComputation(): DocumentComputation {
  const computation = createDocumentComputationPool({ size: 1 });
  afterAll(async () => {
    await computation.close();
  });
  return computation;
}