helpyourneighbour/node_modules/workerpool/src/transfer.js
BibaBot bfd432d094
Some checks are pending
Docker Test / test (push) Waiting to run
Add comprehensive tests for role middleware and fix package dependencies
2026-03-16 20:07:22 +00:00

12 lines
370 B
JavaScript

/**
* The helper class for transferring data from the worker to the main thread.
*
* @param {Object} message The object to deliver to the main thread.
* @param {Object[]} transfer An array of transferable Objects to transfer ownership of.
*/
function Transfer(message, transfer) {
this.message = message;
this.transfer = transfer;
}
module.exports = Transfer;