/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{isPromiseLike as r}from"../../../../core/promiseUtils.js";import{noBudget as e}from"../../../support/Scheduler.js";function o(o){return t=>{if(o.destroyed){const o=t(e);return r(o)?o:Promise.resolve(o)}return o.immediate.schedule(t)}}export{o as makeScheduleFunction};
