Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/third_party/closure-compiler/node-externs/domain.js
6172 views
1
/*
2
* Copyright 2012 The Closure Compiler Authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
/**
18
* @fileoverview Definitions for node's domain module. Depends on the events module.
19
* @see http://nodejs.org/api/domain.html
20
* @see https://github.com/joyent/node/blob/master/lib/domain.js
21
* @externs
22
* @author Daniel Wirtz <[email protected]>
23
*/
24
25
/**
26
* @type {Object.<string,*>}
27
*/
28
var domain = {};
29
30
/**
31
* @type {domain.Domain}
32
*/
33
domain.active;
34
35
/**
36
* @return {domain.Domain}
37
*/
38
domain.create = function() {};
39
40
/**
41
* @constructor
42
* @extends events.EventEmitter
43
*/
44
domain.Domain = function() {};
45
46
/**
47
* @param {function()} fn
48
*/
49
domain.Domain.prototype.run = function(fn) {};
50
51
/**
52
* @type {Array}
53
*/
54
domain.Domain.prototype.members;
55
56
/**
57
* @param {events.EventEmitter} emitter
58
*/
59
domain.Domain.prototype.add = function(emitter) {};
60
61
/**
62
* @param {events.EventEmitter} emitter
63
*/
64
domain.Domain.prototype.remove = function(emitter) {};
65
66
/**
67
* @param {function(...*)} callback
68
* @return {function(...*)}
69
*/
70
domain.Domain.prototype.bind = function(callback) {};
71
72
/**
73
* @param {function(...*)} callback
74
* @return {function(...*)}
75
*/
76
domain.Domain.prototype.intercept = function(callback) {};
77
78
/**
79
*/
80
domain.Domain.prototype.dispose = function() {};
81
82
// Undocumented
83
84
/**
85
*/
86
domain.Domain.prototype.enter = function() {};
87
88
/**
89
*/
90
domain.Domain.prototype.exit = function() {};
91
92