Genese complexity report

<- cluster.d.ts
Methods : 106
Complexity index : 81.4
Cyclomatic complexity : 106
Cognitive complexity
100 % Correct 106/106
0 % Warning 0/106 (threshold : 10)
0 % Error 0/106 (threshold : 20)
Cyclomatic complexity
100 % Correct 106/106
0 % Warning 0/106 (threshold : 5)
0 % Error 0/106 (threshold : 10)
Methods of cluster.d.ts
send Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    send(message: child.Serializable, sendHandle?: child.SendHandle, callback?: (error: Error | null) => void): boolean; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
kill Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    kill(signal?: string): void; // ----------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
destroy Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    destroy(signal?: string): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
disconnect Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    disconnect(): void; // ------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
isConnected Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                    
                    isConnected(): boolean; // ------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
isDead Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                    
                    isDead(): boolean; // ------------ +0.1 Complexity index (+0.1 atomic)
            
                            
                        
addListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    /**
                     * events.EventEmitter
                     *   1. disconnect
                     *   2. error
                     *   3. exit
                     *   4. listening
                     *   5. message
                     *   6. online
                     */
                    addListener(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "disconnect", listener: () => void): this; // --------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "error", listener: (error: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "exit", listener: (code: number, signal: string) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "listening", listener: (address: Address) => void): this; // -------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addListener Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // -------------------------------------------------------------------------- +1.3 Complexity index (+1.3 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "online", listener: () => void): this; // ------------------------------------------------------------------------------------------------------------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
            
                    emit(event: string | symbol, ...args: any[]): boolean; // ---------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "disconnect"): boolean; // -------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "error", error: Error): boolean; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "exit", code: number, signal: string): boolean; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "listening", address: Address): boolean; // -------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "message", message: any, handle: net.Socket | net.Server): boolean; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "online"): boolean; // ------------------------------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
on Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    on(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "disconnect", listener: () => void): this; // --------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "error", listener: (error: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
on Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "exit", listener: (code: number, signal: string) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "listening", listener: (address: Address) => void): this; // -------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
on Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // -------------------------------------------------------------------------- +1.3 Complexity index (+1.3 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "online", listener: () => void): this; // ------------------------------------------------------------------------------------------------------------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    once(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "disconnect", listener: () => void): this; // --------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "error", listener: (error: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "exit", listener: (code: number, signal: string) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "listening", listener: (address: Address) => void): this; // -------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // -------------------------------------------------------------------------- +1.3 Complexity index (+1.3 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "online", listener: () => void): this; // ------------------------------------------------------------------------------------------------------------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    prependListener(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "disconnect", listener: () => void): this; // --------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "error", listener: (error: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "exit", listener: (code: number, signal: string) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "listening", listener: (address: Address) => void): this; // -------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // -------------------------------------------------------------------------- +1.3 Complexity index (+1.3 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "online", listener: () => void): this; // ------------------------------------------------------------------------------------------------------------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    prependOnceListener(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "disconnect", listener: () => void): this; // --------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "error", listener: (error: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "listening", listener: (address: Address) => void): this; // -------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // -------------------------------------------------------------------------- +1.3 Complexity index (+1.3 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "online", listener: () => void): this; // ------------------------------------------------------------------------------------------------------------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
disconnect Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
            
                function disconnect(callback?: () => void): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
fork Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
                function fork(env?: any): Worker; // ----------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
setupMaster Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
                function setupMaster(settings?: ClusterSettings): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
addListener Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
            
                /**
                 * events.EventEmitter
                 *   1. disconnect
                 *   2. exit
                 *   3. fork
                 *   4. listening
                 *   5. message
                 *   6. online
                 *   7. setup
                 */
                function addListener(event: string, listener: (...args: any[]) => void): Cluster; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
addListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function addListener(event: "disconnect", listener: (worker: Worker) => void): Cluster; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
addListener Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
addListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function addListener(event: "fork", listener: (worker: Worker) => void): Cluster; // ------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
addListener Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function addListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
addListener Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                
                 // the handle is a net.Socket or net.Server object, or undefined.
                function addListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
addListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function addListener(event: "online", listener: (worker: Worker) => void): Cluster; // ------------------------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
addListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function addListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
emit Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
            
                function emit(event: string | symbol, ...args: any[]): boolean; // ------------------------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                
                function emit(event: "disconnect", worker: Worker): boolean; // ---------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function emit(event: "exit", worker: Worker, code: number, signal: string): boolean; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                
                function emit(event: "fork", worker: Worker): boolean; // ------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                function emit(event: "listening", worker: Worker, address: Address): boolean; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
emit Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                
                function emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean; // ------- +1.3 Complexity index (+1.3 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                
                function emit(event: "online", worker: Worker): boolean; // ------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                
                function emit(event: "setup", settings: ClusterSettings): boolean; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
            
                function on(event: string, listener: (...args: any[]) => void): Cluster; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
on Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function on(event: "disconnect", listener: (worker: Worker) => void): Cluster; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
on Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
on Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function on(event: "fork", listener: (worker: Worker) => void): Cluster; // ------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
on Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function on(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
on Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                
                function on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // -------------------------------------------------------------------------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
on Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function on(event: "online", listener: (worker: Worker) => void): Cluster; // -------------------------------------------------------------------------------------------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
on Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function on(event: "setup", listener: (settings: ClusterSettings) => void): Cluster; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
once Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
            
                function once(event: string, listener: (...args: any[]) => void): Cluster; // ----------------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
once Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function once(event: "disconnect", listener: (worker: Worker) => void): Cluster; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
once Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
once Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function once(event: "fork", listener: (worker: Worker) => void): Cluster; // ------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
once Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function once(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
once Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                
                function once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // -------------------------------------------------------------------------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
once Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function once(event: "online", listener: (worker: Worker) => void): Cluster; // -------------------------------------------------------------------------------------------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
once Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function once(event: "setup", listener: (settings: ClusterSettings) => void): Cluster; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
removeListener Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
            
                function removeListener(event: string, listener: (...args: any[]) => void): Cluster; // --------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
removeAllListeners Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
                function removeAllListeners(event?: string): Cluster; // -------------------------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
setMaxListeners Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function setMaxListeners(n: number): Cluster; // --------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
getMaxListeners Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                
                function getMaxListeners(): number; // ----------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
listeners Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                
                function listeners(event: string): Function[]; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
listenerCount Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function listenerCount(type: string): number; // -------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
prependListener Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
            
                function prependListener(event: string, listener: (...args: any[]) => void): Cluster; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
prependListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function prependListener(event: "disconnect", listener: (worker: Worker) => void): Cluster; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependListener Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
prependListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function prependListener(event: "fork", listener: (worker: Worker) => void): Cluster; // ------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependListener Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
prependListener Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                
                 // the handle is a net.Socket or net.Server object, or undefined.
                function prependListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
prependListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function prependListener(event: "online", listener: (worker: Worker) => void): Cluster; // ------------------------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function prependListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
            
                function prependOnceListener(event: string, listener: (...args: any[]) => void): Cluster; // --------------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): Cluster; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependOnceListener Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function prependOnceListener(event: "fork", listener: (worker: Worker) => void): Cluster; // ------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependOnceListener Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
prependOnceListener Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                
                 // the handle is a net.Socket or net.Server object, or undefined.
                function prependOnceListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function prependOnceListener(event: "online", listener: (worker: Worker) => void): Cluster; // ------------------------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
eventNames Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
            
                function eventNames(): string[]; // ---------------------------------------------------------------------------- +0.3 Complexity index (+0.3 atomic)