feat: Implentation of the daemons

This commit is contained in:
BluJ
2023-04-11 17:05:52 -06:00
parent f3c1cea0b9
commit 77a9c6d20e
5 changed files with 370 additions and 525 deletions

View File

@@ -22,13 +22,10 @@ export { Daemons } from "./Daemons";
* @returns
*/
export const runningMain: (
fn: (o: {
effects: Effects;
started(onTerm: () => void): null;
}) => Promise<Daemons<any>>
fn: (o: { effects: Effects; started(onTerm: () => void): null }) => Promise<Daemons<any>>
) => ExpectedExports.main = (fn) => {
return async (options) => {
/// TODO BLUJ
return null as any;
const result = await fn(options);
await result.build().then((x) => x.wait());
};
};