Block WebAPI during active registration
This commit is contained in:
parent
9e9e5274cf
commit
8070b8b14f
3 changed files with 100 additions and 35 deletions
|
@ -1,11 +1,13 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export function explodePromise<T>(): {
|
||||
export type ExplodePromiseResultType<T> = Readonly<{
|
||||
promise: Promise<T>;
|
||||
resolve: (value: T) => void;
|
||||
reject: (error: Error) => void;
|
||||
} {
|
||||
}>;
|
||||
|
||||
export function explodePromise<T>(): ExplodePromiseResultType<T> {
|
||||
let resolve: (value: T) => void;
|
||||
let reject: (error: Error) => void;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue