-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove usage of a WebWorker/worker thread (#2498)
* Remove liveness pings * Remove "current task" system * Rename instance.ts -> raw-instance.ts * Turn worker.ts into a simple object * Remove the utilities that deal with the worker * Provide the configuration when starting and not asychronously * Use a Promise for state rather than an array * Use queueOperation instead of handleMessage * Turn generic handleMessage into individual functions * Make worker.addChain return a Promise * addChain is now properly async * Make removeChain, request, and databaseContent always synchronous * Track the active chains within worker.ts * Fix state wasn't being set properly * Make databaseContent return a Promise * Provide logCallback in config and finish removing messages * Remove mention of the worker * Remove unused node:worker_threads import * Finish removing the ToWorker messages * Get rid of messages module * Add some console.asserts * No longer track chains in client.ts * Move the number handling of databaseContent to worker.ts * Rename worker to instance * Pass onProcExit rather than throwing directly * Add onPanic to smoldot bindings * Clarify panic handling situation * Finally properly handle crashes * Properly format instance.ts * Remove obsolete code * Implement clean shutdown of the instance * Fix removeChain and databaseContent still callable * Document start_shutdown * Clarify alreadyDestroyedError * CHANGELOG * Fix startShutdown handling of errors * Spellcheck * Rename * More rename Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
a5d9c67
commit c8af315
Showing
22 changed files
with
497 additions
and
772 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.