Skip to content

Commit

Permalink
chore: fix typo in next-tick.js comment (#10607)
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony authored and posva committed Oct 8, 2019
1 parent e8ca21f commit d7d8ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/next-tick.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ if (typeof Promise !== 'undefined' && isNative(Promise)) {
isUsingMicroTask = true
} else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
// Fallback to setImmediate.
// Techinically it leverages the (macro) task queue,
// Technically it leverages the (macro) task queue,
// but it is still a better choice than setTimeout.
timerFunc = () => {
setImmediate(flushCallbacks)
Expand Down

1 comment on commit d7d8ff0

@Yyz-cn
Copy link

@Yyz-cn Yyz-cn commented on d7d8ff0 Nov 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isUsingMicroTask = true
} else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
// Fallback to setImmediate.
// Techinically it leverages the (macro) task queue,
// Technically it leverages the (macro) task queue,
// but it is still a better choice than setTimeout.
timerFunc = () => {
setImmediate(flushCallbacks)

Please sign in to comment.