3be9dde92d
* Add option to align web dialogs to top * Add new wait util * Pipe through feed view to feed components * Reset unneeded change to main * Copy over fresh report dialog based on old * Hack in temp testing data * Swap in new dialog in all cases but chat * Cleanup * Add load and initial error state * Fill in states * Add copyright link * Handle single labeler case * Comment out debug code * Improve centering of type in circles * Open details if Other is selected * Remove debug code * Tweak colors * Bump SDK * Tweak Admonition for better x-platform styles * Add retry button * Add close button * Remove todo not covered in this PR * Translate Retry
6 lines
179 B
TypeScript
6 lines
179 B
TypeScript
export async function wait<T>(delay: number, fn: T): Promise<Awaited<T>> {
|
|
return await Promise.all([fn, new Promise(y => setTimeout(y, delay))]).then(
|
|
arr => arr[0],
|
|
)
|
|
}
|