external interface Process : EventEmitter
open var defaultApp: Boolean? |
|
open var mas: Boolean? |
|
open var noAsar: Boolean? |
|
open var noDeprecation: Boolean? |
|
open var resourcesPath: String? |
|
open var sandboxed: Boolean? |
|
open var throwDeprecation: Boolean? |
|
open var traceDeprecation: Boolean? |
|
open var traceProcessWarnings: Boolean? |
|
open var type: String? |
|
open var versions: ProcessVersions? |
|
open var windowsStore: Boolean? |
abstract fun addListener(event: String, listener: Function<*>): Process |
|
abstract fun crash(): Unit |
|
abstract fun getCPUUsage(): CPUUsage |
|
abstract fun getIOCounters(): IOCounters |
|
abstract fun getProcessMemoryInfo(): ProcessMemoryInfo |
|
abstract fun getSystemMemoryInfo(): SystemMemoryInfo |
|
abstract fun hang(): Unit |
|
abstract fun on(event: String, listener: Function<*>): Process |
|
abstract fun once(event: String, listener: Function<*>): Process |
|
abstract fun removeListener(event: String, listener: Function<*>): Process |
|
abstract fun setFdLimit(maxDescriptors: Number): Unit |
open fun emit(event: String, vararg args: Any): Boolean |
|
open fun eventNames(): Array<String> |
|
open fun getMaxListeners(): Number |
|
open fun listenerCount(type: String): Number |
|
open fun listeners(event: String): Array<Function<*>> |
|
open fun prependListener(event: String, listener: Function<*>): EventEmitter |
|
open fun prependOnceListener(event: String, listener: Function<*>): EventEmitter |
|
open fun removeAllListeners(event: String? = definedExternally): EventEmitter |
|
open fun setMaxListeners(n: Number): EventEmitter |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |