mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Remove Signal.Util
This commit is contained in:
@@ -8,6 +8,7 @@ import * as Errors from '../types/errors';
|
||||
import * as log from '../logging/log';
|
||||
import { ProgressModal } from '../components/ProgressModal';
|
||||
import { clearTimeoutIfNecessary } from './clearTimeoutIfNecessary';
|
||||
import { sleep } from './sleep';
|
||||
|
||||
export async function longRunningTaskWrapper<T>({
|
||||
name,
|
||||
@@ -49,7 +50,7 @@ export async function longRunningTaskWrapper<T>({
|
||||
log.info(
|
||||
`longRunningTaskWrapper/${idLog}: Spinner shown for less than second, showing for another second`
|
||||
);
|
||||
await window.Signal.Util.sleep(ONE_SECOND);
|
||||
await sleep(ONE_SECOND);
|
||||
}
|
||||
unmountComponentAtNode(progressNode);
|
||||
progressNode = undefined;
|
||||
|
||||
Reference in New Issue
Block a user