Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect scan result #5

Open
minwe opened this issue Dec 21, 2017 · 1 comment
Open

Incorrect scan result #5

minwe opened this issue Dec 21, 2017 · 1 comment

Comments

@minwe
Copy link

minwe commented Dec 21, 2017

Code:

/**
 * yield 队列的延迟
 * @author minhui.lmh
 * @since 2017/4/10.
 */

export default function delay(time) {
  const timerId = `delay-${new Date().getTime()}`;
  console.time(timerId); // eslint-disable-line
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve();
      console.timeEnd(timerId); // eslint-disable-line
    }, time);
  });
}

Got a warning:

7. Replace GregorianCalendar with moment
  Line 8: src/utils/delay.js
  Reason: GregorianCalendar has been replaced with [moment](http://momentjs.com/)
  More info: http://u.ant.design/gg2moment
@yesmeck
Copy link
Member

yesmeck commented Dec 22, 2017

感觉不好处理,先忽略吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants