feat: easier way to destroy child processes #20497
Labels
public API
related to "Deno" namespace in JS
runtime
Relates to code in the runtime crate
suggestion
suggestions for new features (yet to be agreed)
After a debugging session regarding leaking resources in tests it turned out that a test case in the Fresh repository wasn't properly waiting for child processes to be killed.
The current way to do it should look like this:
This lead us to wonder if we could provide an easier API for that. Especially, in a test suite it's not relevant how the child process is killed. You just want this thing to be destroyed. Some random ideas:
The text was updated successfully, but these errors were encountered: