Component

Interface for classes that Component

Methods

afterStart(cb) → {Void}

Component lifecycle callback, afterStart
Parameters:
Name Type Description
cb function
Returns:
Void

start(cb) → {Void}

Component lifecycle callback, start
Parameters:
Name Type Description
cb function
Returns:
Void

stop(force, cb) → {Void}

Component lifecycle callback, stop
Parameters:
Name Type Description
force Boolean whether stop the component immediately
cb function
Returns:
Void