Tracks send state for edited messages

This commit is contained in:
Josh Perez 2023-08-15 19:24:19 -04:00 committed by Jamie Kyle
parent 860bec5534
commit b2319b43d6
8 changed files with 391 additions and 55 deletions

View file

@ -11,10 +11,10 @@ let activeJobCount = 0;
let resolveShutdown: (() => void) | undefined;
let shutdownPromise: Promise<void> | null = null;
export async function ipcInvoke(
export async function ipcInvoke<T>(
name: string,
args: ReadonlyArray<unknown>
): Promise<void> {
): Promise<T> {
const fnName = String(name);
if (shutdownPromise && name !== 'close') {