Tracks send state for edited messages
This commit is contained in:
parent
860bec5534
commit
b2319b43d6
8 changed files with 391 additions and 55 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue