Introduction
The EE framework's main process is single-threaded. The advantage is high development efficiency, but when dealing with compute-intensive business, developers need to learn to use child processes or encapsulate renderer process script execution, and also need to implement communication and encryption features; this is quite difficult for developers.
The framework provides a pre-packaged task module that makes it easy for developers to meet their requirements.
Business Directory
./electron/jobsThe jobs mode creates child processes via Node.js. During packaging, they are excluded from the bundle and have a separate directory structure.
Important
- Code in jobs files should not import code from controllers or services. It is recommended to write standalone code in the jobs/ directory
- Jobs cannot call Electron APIs (Electron officially does not support this). It is recommended to send messages to the main process and let the main process call them
