Replace Promise.delay with promise utils sleep
(cherry picked from commit 0a21957b2c
)
This commit is contained in:
parent
2ea239d192
commit
2b34cf4362
4 changed files with 13 additions and 9 deletions
|
@ -32,6 +32,7 @@ import * as Email from '../../../email';
|
|||
import IdentityAuthClient from '../../../IdentityAuthClient';
|
||||
import { getDefaultIdentityServerUrl, useDefaultIdentityServer } from '../../../utils/IdentityServerUtils';
|
||||
import { abbreviateUrl } from '../../../utils/UrlUtils';
|
||||
import {sleep} from "../../../utils/promise";
|
||||
|
||||
const TRUNCATE_QUERY_LIST = 40;
|
||||
const QUERY_USER_DIRECTORY_DEBOUNCE_MS = 200;
|
||||
|
@ -533,7 +534,7 @@ module.exports = createReactClass({
|
|||
};
|
||||
|
||||
// wait a bit to let the user finish typing
|
||||
await Promise.delay(500);
|
||||
await sleep(500);
|
||||
if (cancelled) return null;
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue