Skip to main content
torch.js has not been released yet.
torch.js logotorch.js logotorch.js
PlaygroundContact
Login
Documentation
IntroductionType SafetyTensor ExpressionsTensor IndexingEinsumEinopsAutogradTraining a ModelProfiling & MemoryPyTorch MigrationBest PracticesRuntimesPerformancePyTorch CompatibilityBenchmarksDType Coverage
torch.js· 2026
LegalTerms of UsePrivacy Policy
/
/
  1. docs
  2. Spark
  3. spark
  4. worker
  5. reregisterHandlers

spark.worker.reregisterHandlers

function reregisterHandlers(): void

Re-register all function handlers with a new RPC instance.

Called when RPC is reconnected (e.g., after hot reload). Ensures all exposed functions are available to the new RPC instance.

Previous
requestReload
Next
setIdle