CBFS Filter 2020 Node.js Edition

Questions / Feedback?

WorkerThreadTermination Event

Fires just before a worker thread is terminated.

Syntax

cbmonitor.on('WorkerThreadTermination', [callback])

Callback

The 'callback' is called when the 'WorkerThreadTermination' event is emited.

function(e){ }

The argument 'e' has the following properties:










Remarks

This event fires just before a worker thread is terminated, in the context of that worker thread.

This event is optional; it is provided to give applications a chance to perform additional processing before a worker thread is terminated, such as deallocating per-thread objects.

The class maintains a pool of worker threads and uses them to fire events; please refer to the Threading and Concurrency topic for more information.

Any errors that occur during this event are ignored.

This event is fired synchronously; please refer to the Event Types topic for more information.

 
 
Copyright (c) 2021 Callback Technologies, Inc. - All rights reserved.
CBFS Filter 2020 Node.js Edition - Version 20.0 [Build 7917]