/* eslint-disable @typescript-eslint/promise-function-async */ import type { Job, Pipe, Strategy, StrategyFactory } from "../types"; export function createPassthruStrategy>( downstream: Strategy ) { return { launchJob(job) { return downstream.launchJob(job); }, launchesDone() { downstream.launchesDone(); }, next() { return downstream.next(); }, } satisfies Strategy; } export function createPassthruPipe(): Pipe { return (createStrategy: StrategyFactory) => >() => createPassthruStrategy(createStrategy()); }