mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-04 14:29:47 +00:00
feat: Implentation of the daemons
This commit is contained in:
@@ -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());
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user