-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web workers #1993
Merged
Merged
Web workers #1993
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
6481082
Web workers pass 1
afinch7 368bbfd
Make linter happy
afinch7 d28a44d
fmt
afinch7 84e56d8
Refactored the way worker polling is scheduled and errors are handled.
afinch7 df12a00
Some cleanup and handle worker close on host end.
afinch7 99f6db1
Merge branch 'master' into web_workers
afinch7 a1b048c
Share the worker future as a Shared
afinch7 4f52d6b
Merge branch 'web_workers' of https://github.com/afinch7/deno into we…
afinch7 8d30513
Fixed some merge issues and added a worker test
afinch7 ec2149b
compile_sync returns errors now
afinch7 2103d32
Refactored compile_sync again
afinch7 1a6be92
fixed bugs and moved compiler error exit back to compile_sync
afinch7 4eb80ab
lots of comments for compile_sync
afinch7 1e2c184
refactored compile_sync again to use a future that is less blocking.
afinch7 cfd3289
Merge branch 'master' into web_workers
afinch7 e245db1
enable debug to find this problem
afinch7 58de310
remove old comments
afinch7 e6a3bab
maybe same tokio runtime for all compiler tasks?
afinch7 fa72bc9
remove debug from tests
afinch7 32d7ad4
worker ts lib
afinch7 a9c8271
requested change: workers test assert
afinch7 5b101a8
renamed WebWorkerBehavior to UserWorkerBehaivor and moved to workers.rs
afinch7 8388fa2
Merge remote-tracking branch 'upstream/master' into web_workers
afinch7 53fcd75
fixed remaining merge issues
afinch7 6e173b8
remove thread spawn from worker tests
afinch7 5815927
removed worker specific snapshot/bundle
afinch7 b0881d4
forgot to remove the startup data function
afinch7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixed bugs and moved compiler error exit back to compile_sync
- Loading branch information
commit 1a6be9206d8f0ede6b454d8915d2582524f3e907
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This runtime is different than the tokio runtime? (defined by crate::tokio_util::run)
Ideally we could get all isolates using the same runtime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that, but this leads to tokio waiting indefinitely for the compiler worker to exit. The compiler worker only has two ways to exit right now: calling
workerClose
as the worker or throwing a uncaught error. Maybe work on a better way to terminate the compiler worker later?