Sha256: e010b63825c793396a3b1ced511d8151265d29ff7d9f4d5440ef005cbc6625c6
Contents?: true
Size: 565 Bytes
Versions: 2
Compression:
Stored size: 565 Bytes
Contents
import { RSVP } from 'ember-runtime'; import { backburner } from '@ember/runloop'; import { isTesting } from '@ember/debug'; import { asyncStart, asyncEnd } from '../test/adapter'; RSVP.configure('async', function(callback, promise) { // if schedule will cause autorun, we need to inform adapter if (isTesting() && !backburner.currentInstance) { asyncStart(); backburner.schedule('actions', () => { asyncEnd(); callback(promise); }); } else { backburner.schedule('actions', () => callback(promise)); } }); export default RSVP;
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discourse-ember-source-3.5.1.1 | dist/es/ember-testing/lib/ext/rsvp.js |
discourse-ember-source-3.5.1.0 | dist/dist/es/ember-testing/lib/ext/rsvp.js |