#

API Docs for: v3.16.0-alpha.2
Show: Inherited Protected Private Deprecated

# File: ../store/addon/-private/system/backburner.js

    /**
      @module @ember-data/store
    */

    import { registerWaiter } from '@ember/test';
    import Ember from 'ember';
    import { DEBUG } from '@glimmer/env';

    const backburner = new Ember._Backburner(['normalizeRelationships', 'syncRelationships', 'finished']);

    if (DEBUG) {
      registerWaiter(() => {
        return !backburner.currentInstance && !backburner.hasTimers();
      });
    }

    export default backburner;