Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

95
Vistas
Propagate AbortSignal in Electron.js

We have an Electron.js (v15) app with multiple windows and proper contextIsolation. Each window may call child_process.execFile any time. The execFile process may rarely hangs, so I want to show a Cancel button to cancel execFile in the main process (through preload script).

The only solution which has came to my mind is some kind of global registry of AbortControllers in the main process (e.g. Map<string, AbortController>) and the browser process would have to manage that registry by some unique string IDs (e.g. UUIDs).

Is there any simpler solution, how to propagate AbortController.abort() to the AbortSignal in the main process?

Note: Electron remote does similir thing through ObjectRegistry.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda