github.com/outbrain/consul@v1.4.5/ui-v2/app/services/timeout.js (about) 1 import Service from '@ember/service'; 2 import promisedTimeoutFactory from 'consul-ui/utils/promisedTimeout'; 3 import { Promise } from 'rsvp'; 4 const promisedTimeout = promisedTimeoutFactory(Promise); 5 export default Service.extend({ 6 execute: function(milliseconds, cb) { 7 return promisedTimeout(milliseconds, cb); 8 }, 9 });