Overview of the Worker interface
The
Worker interface represents a background task created via script. It allows the main thread to offload work to a separate thread and communicate with it using a messaging system.