Skip to content

Refactor code to use web workers for check-in operations#3

Open
sweep-ai-deprecated[bot] wants to merge 6 commits intomainfrom
sweep/refactor-web-workers
Open

Refactor code to use web workers for check-in operations#3
sweep-ai-deprecated[bot] wants to merge 6 commits intomainfrom
sweep/refactor-web-workers

Conversation

@sweep-ai-deprecated
Copy link
Contributor

Description

This PR refactors the code in main.ts and lib/*.ts files to use web workers for the check-in operations. Web workers allow each check-in operation to run on a separate thread, improving the performance of the application. The code changes are made in accordance with the Deno documentation on web workers.

Summary of Changes

  • Refactored main.ts to create a new worker for each check-in operation.
  • Modified the check-in functions in lib/*.ts files to be compatible with web workers.
  • Added an error handling function in main.ts to handle any errors that may occur during the execution of the web workers.
  • Set the correct permissions and passed the type: "module" option when creating a new worker.

Please review and merge this PR to incorporate the changes.

Fixes #1.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/refactor-web-workers

To make tweaks to this pull request, leave a comment below or in the code.

@sweep-ai-deprecated sweep-ai-deprecated bot added the sweep Assigns Sweep to an issue or pull request. label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep Assigns Sweep to an issue or pull request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sweep: refactor the code in main.ts and lib/*.ts to use web worker

0 participants