Home Reference Source
public class | source

ProcessWorkerCPP

Extends:

ProcessWorker → ProcessWorkerCPP

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

cores: *

Private Members
private

Method Summary

Public Methods
public

async kill(param: *): *

public

async restartWorker(): *

Private Methods
private

Inherited Summary

From class ProcessWorker
public get
public
public

emitter: *

public

id: *

public
public

suffix: *

private

_child: *

private

_count: *

private

_data: *

private

_end: *

private
private
private
private
private
private
private
private
private
private
public

kill(param: *): *

public

on(a: *, b: *): *

public

once(a: *, b: *): *

public
public

async send(length: *, block: *, difficulty: *, start: *, end: *, batch: *)

public

async start(path: *, filename: *): boolean

private

async _deleteFile(prefix: string)

private

_emit(a: *, b: *): *

private
private

async _validateWork()

private

async _writeWork(data: *)

Public Constructors

public constructor() source

Override:

ProcessWorker#constructor

Public Members

public cores: * source

Private Members

private _is_batching: boolean source

Override:

ProcessWorker#_is_batching

Public Methods

public async kill(param: *): * source

Override:

ProcessWorker#kill

Params:

NameTypeAttributeDescription
param *

Return:

*

public async restartWorker(): * source

Override:

ProcessWorker#restartWorker

Return:

*

Private Methods

private _getProcessParams(): * source

Override:

ProcessWorker#_getProcessParams

Return:

*