Path: blob/main/third_party/closure-compiler/node-externs/domain.js
6172 views
/*1* Copyright 2012 The Closure Compiler Authors.2*3* Licensed under the Apache License, Version 2.0 (the "License");4* you may not use this file except in compliance with the License.5* You may obtain a copy of the License at6*7* http://www.apache.org/licenses/LICENSE-2.08*9* Unless required by applicable law or agreed to in writing, software10* distributed under the License is distributed on an "AS IS" BASIS,11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12* See the License for the specific language governing permissions and13* limitations under the License.14*/1516/**17* @fileoverview Definitions for node's domain module. Depends on the events module.18* @see http://nodejs.org/api/domain.html19* @see https://github.com/joyent/node/blob/master/lib/domain.js20* @externs21* @author Daniel Wirtz <[email protected]>22*/2324/**25* @type {Object.<string,*>}26*/27var domain = {};2829/**30* @type {domain.Domain}31*/32domain.active;3334/**35* @return {domain.Domain}36*/37domain.create = function() {};3839/**40* @constructor41* @extends events.EventEmitter42*/43domain.Domain = function() {};4445/**46* @param {function()} fn47*/48domain.Domain.prototype.run = function(fn) {};4950/**51* @type {Array}52*/53domain.Domain.prototype.members;5455/**56* @param {events.EventEmitter} emitter57*/58domain.Domain.prototype.add = function(emitter) {};5960/**61* @param {events.EventEmitter} emitter62*/63domain.Domain.prototype.remove = function(emitter) {};6465/**66* @param {function(...*)} callback67* @return {function(...*)}68*/69domain.Domain.prototype.bind = function(callback) {};7071/**72* @param {function(...*)} callback73* @return {function(...*)}74*/75domain.Domain.prototype.intercept = function(callback) {};7677/**78*/79domain.Domain.prototype.dispose = function() {};8081// Undocumented8283/**84*/85domain.Domain.prototype.enter = function() {};8687/**88*/89domain.Domain.prototype.exit = function() {};909192