1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1 1 1 1 3 3 3 3 3 1 | ///<reference path=".d.ts"/> "use strict"; var Fiber = require("fibers"); var Future = require("fibers/future"); var errors = require("./errors"); function run(action) { Fiber(function () { errors.installUncaughtExceptionListener(); action(); $injector.dispose(); Future.assertNoFutureLeftBehind(); }).run(); } exports.run = run; |