index-legacy.mjs 390 B

1234567891011121314151617181920
  1. import { stepsOrder } from './order.mjs';
  2. import { frame, cancelFrame } from './frame.mjs';
  3. /**
  4. * @deprecated
  5. *
  6. * Import as `frame` instead.
  7. */
  8. const sync = frame;
  9. /**
  10. * @deprecated
  11. *
  12. * Use cancelFrame(callback) instead.
  13. */
  14. const cancelSync = stepsOrder.reduce((acc, key) => {
  15. acc[key] = (process) => cancelFrame(process);
  16. return acc;
  17. }, {});
  18. export { cancelSync, sync };