-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
[Merged by Bors] - Allow passing owned HostHooks
and JobQueues
to Context
#2811
Conversation
Test262 conformance changes
|
Codecov Report
@@ Coverage Diff @@
## main #2811 +/- ##
==========================================
- Coverage 51.31% 51.11% -0.21%
==========================================
Files 416 417 +1
Lines 41213 41517 +304
==========================================
+ Hits 21149 21221 +72
- Misses 20064 20296 +232
... and 25 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Looks great!! Thanks!
I just had a small suggestion :)
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.
Nice! Looks good to me! :)
bors r+ |
This allows `thread_local` contexts to have owned `HostHooks` and `JobQueues`. It changes the following: - Creates a new `MaybeShared` struct that can hold either a reference or an `Rc`. - Changes the `job_queue` and `host_hooks` parameters of `Context` to use `MaybeShared`. This PR also allows us to make `SimpleJobQueue` the default promise runner, which I think it's pretty cool :) cc @lastmjs
Pull request successfully merged into main. Build succeeded: |
HostHooks
and JobQueues
to Context
HostHooks
and JobQueues
to Context
This allows
thread_local
contexts to have ownedHostHooks
andJobQueues
.It changes the following:
MaybeShared
struct that can hold either a reference or anRc
.job_queue
andhost_hooks
parameters ofContext
to useMaybeShared
.This PR also allows us to make
SimpleJobQueue
the default promise runner, which I think it's pretty cool :)cc @lastmjs