addon-test-support/@ember/test-helpers/settled.js
/**
  Checks various settledness metrics (via `getSettledState()`) to determine if things are settled or not.

  Settled generally means that there are no pending timers, no pending waiters,
  no pending AJAX requests, and no current run loop. However, new settledness
  metrics may be added and used as they become available.

  @public
  @returns {boolean} `true` if settled, `false` otherwise
*/
Checks various settledness metrics (via `getSettledState()`) to determine if things are settled or not.
Settled generally means that there are no pending timers, no pending waiters,
no pending AJAX requests, and no current run loop. However, new settledness
metrics may be added and used as they become available.
Checks various settledness metrics ( via ` getSettledState () ` ) to determine if things are settled or not . Settled generally means that there are no pending timers no pending waiters no pending AJAX requests and no current run loop . However new settledness metrics may be added and used as they become available .
function isSettled() {
  let { hasPendingTimers, hasRunLoop, hasPendingRequests, hasPendingWaiters } = getSettledState();
  if (hasPendingTimers || hasRunLoop || hasPendingRequests || hasPendingWaiters) {
    return false;
  }
  return true;
}
function isSettled ( ) { let { hasPendingTimers , hasRunLoop , hasPendingRequests , hasPendingWaiters } = getSettledState ( ) ; if ( hasPendingTimers || hasRunLoop || hasPendingRequests || hasPendingWaiters ) { return false ; } return true ; }
Checks various settledness metrics (via `getSettledState()`) to determine if things are settled or not.
Checks various settledness metrics ( via ` getSettledState () ` ) to determine if things are settled or not .