Skip to content

Commit

Permalink
Merge pull request #370 from rwjblue/micro-task-next-tick
Browse files Browse the repository at this point in the history
Allow internal `nextTick` utility to use microtasks when possible.
  • Loading branch information
rwjblue committed Oct 23, 2018
2 parents 8897a0c + ba418a1 commit 2fbd581
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon-test-support/@ember/test-helpers/-utils.js
@@ -1,6 +1,7 @@
import { Promise } from 'rsvp';

export const nextTick = setTimeout;
export const nextTick =
typeof Promise === 'undefined' ? setTimeout : cb => Promise.resolve().then(cb);
export const futureTick = setTimeout;

/**
Expand Down

0 comments on commit 2fbd581

Please sign in to comment.