-
Notifications
You must be signed in to change notification settings - Fork 57
Send IPC message from main process to a reader in the task pool #22
Comments
Can you talk more about what you're trying to do? This is probably a pretty race-condition'y thing to do |
Hi @paulcbetts,
the code above is for the upload
My idea is to send a message from the main thread (upload manager) to all the workers in the task pool in order to pause/resume the uploads. Maybe I'm approaching the problem in the wrong way. How can I implement a bidirectional communication between the workers and the upload manager? |
I don't think you're approaching it wrong, I just think we don't have a super great solution for this right now. How would you picture that API to work? (I have some ideas but I'm not sure if other people would grok them) |
The ideal for me would be to have an API similar to the one exposed by the default Did you have something else in mind? |
@paulcbetts Any idea ? |
Hello,
I'm trying to send a message from the main process to all the render processes in the task pool.
Now I'm sending the message using the standard electron
ipcMain.send()
but unfortunately the message is not received by the background render processes.Any idea on how to make it work?
The text was updated successfully, but these errors were encountered: