Files
geekgeekrun/packages/ui/src/main/utils/worker.ts

14 lines
372 B
TypeScript

import { sendToDaemon } from "../flow/OPEN_SETTING_WINDOW/connect-to-daemon"
export async function checkShouldExit () {
const shouldExitResponse = await sendToDaemon(
{
type: 'check-should-exit',
workerId: process.env.GEEKGEEKRUND_WORKER_ID,
},
{
needCallback: true
}
)
return shouldExitResponse?.shouldExit
}