# Code coverage report for RxJS/dist/cjs/schedulers/NextTickScheduler.js

## Statements: 92.86% (26 / 28) Branches: 61.11% (11 / 18) Functions: 100% (6 / 6) Lines: 100% (20 / 20) Ignored: none

All files » RxJS/dist/cjs/schedulers/ » NextTickScheduler.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40

    1

    3

    1

    1

    1

    1

    1

    1

    1

    1

    1
    1

    1
    1

    1

    1
    1

    1

    1
    1'use strict';

    exports.__esModule = true;

    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

    function _classCallCheck(instance, Constructor) { Iif (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

    function _inherits(subClass, superClass) { Iif (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); Eif (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

    var _ImmediateScheduler2 = require('./ImmediateScheduler');

    var _ImmediateScheduler3 = _interopRequireDefault(_ImmediateScheduler2);

    var _NextTickAction = require('./NextTickAction');

    var _NextTickAction2 = _interopRequireDefault(_NextTickAction);

    var _ImmediateAction = require('./ImmediateAction');

    var _ImmediateAction2 = _interopRequireDefault(_ImmediateAction);

    var NextTickScheduler = (function (_ImmediateScheduler) {
        _inherits(NextTickScheduler, _ImmediateScheduler);

        function NextTickScheduler() {
            _classCallCheck(this, NextTickScheduler);

            _ImmediateScheduler.apply(this, arguments);
        }

        NextTickScheduler.prototype.scheduleNow = function scheduleNow(work, state) {
            return (this.scheduled ? new _ImmediateAction2['default'](this, work) : new _NextTickAction2['default'](this, work)).schedule(state);
        };

        return NextTickScheduler;
    })(_ImmediateScheduler3['default']);

    exports['default'] = NextTickScheduler;
    module.exports = exports['default'];