INNER CODE UNIT · JavaScript

pushLearningPackToWorker

3cqs-coder/SymBot · libs/app/Hub/Main.js:190

function pushLearningPackToWorker(worker) {

	try {

		const pack = buildHubLearningPack();
		if (pack && worker && typeof worker.postMessage === 'function') {

			worker.postMessage({ type: HUB_TO_WORKER.LEARNING_PACK, payload: pack });
		}
	}
	catch (e) { /* best-effort */ }
}


// Broadcast the pooled learning pack to every running worker, so patterns learned by one
// instance reach the others without waiting for a restart.
function broadcastLearningPack() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…