-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Re-enable unref
in Deno
#3701
Open
lucacasonato
wants to merge
2
commits into
evanw:main
Choose a base branch
from
lucacasonato:re_enable_ef
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+49
−14
Open
Re-enable unref
in Deno
#3701
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -664,20 +664,24 @@ export let version: string | |
|
||
// Call this function to terminate esbuild's child process. The child process | ||
// is not terminated and re-created after each API call because it's more | ||
// efficient to keep it around when there are multiple API calls. | ||
// efficient to keep it around when there are multiple API calls. This child | ||
// process normally exits automatically when the parent process exits, so you | ||
// usually don't need to call this function. | ||
// | ||
// In node this happens automatically before the parent node process exits. So | ||
// you only need to call this if you know you will not make any more esbuild | ||
// API calls and you want to clean up resources. | ||
// | ||
// Unlike node, Deno lacks the necessary APIs to clean up child processes | ||
// automatically. You must manually call stop() in Deno when you're done | ||
// using esbuild or Deno will continue running forever. | ||
// One reason you might want to call this is if you know you will not make any | ||
// more esbuild API calls and you want to clean up resources (since the esbuild | ||
// child process takes up some memory even when idle). | ||
// | ||
// Another reason you might want to call this is if you are using esbuild from | ||
// within a Deno test. Deno fails tests that create a child process without | ||
// killing it before the test ends, so you have to call this function (and | ||
// await the returned promise) in every Deno test that uses esbuild. | ||
// await the returned promise) in every Deno test that starts esbuild. | ||
// | ||
// You may also start esbuild once at the top level of your test suite (by | ||
// calling `initialize()`) instead of starting and stopping the esbuild process | ||
// for every test. This will not interfere with the resource sanitizer, and will | ||
// improve the efficiency of your tests because the esbuild process can be | ||
// reused between tests. | ||
Comment on lines
+680
to
+684
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have added this paragraph to explain that you may also start esbuild outside of a |
||
export declare function stop(): Promise<void> | ||
|
||
// Note: These declarations exist to avoid type errors when you omit "dom" from | ||
|
Oops, something went wrong.
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 is the only new code. All other code is just a revert of 116f63e.