Sha256: 4d222b1141899549ef5f3552acd8179d6ccce05083433b9090fda9115c44d84c

Contents?: true

Size: 193 Bytes

Versions: 3

Compression:

Stored size: 193 Bytes

Contents

import { getCurrentRunLoop, run as emberRun } from '@ember/runloop';

export default function run(fn) {
  if (!getCurrentRunLoop()) {
    return emberRun(fn);
  } else {
    return fn();
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/ember-testing/lib/test/run.js
discourse-ember-source-3.5.1.1 dist/es/ember-testing/lib/test/run.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-testing/lib/test/run.js