blob: 2e51c09cea37a1c439f50c91e5cbef2ad0f59a9f [file] [log] [blame]
/**
* 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;