Sitelet https://web.archive.org/web/20220323014304/https://github.com/nodejs/node/pull/35597
Skip to content
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

src: add embedding helpers to reduce boilerplate code #35597

Closed
wants to merge 2 commits into from

Conversation

addaleax
Copy link
Member

@addaleax addaleax commented Oct 11, 2020

Provide helpers for a) spinning the event loop and
b) setting up and tearing down the objects involved in a single
Node.js instance, as they would typically be used.
The former helper is also usable inside Node.js itself,
for both Worker and main threads.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@addaleax addaleax added the embedding label Oct 11, 2020
@nodejs-github-bot nodejs-github-bot added c++ lib / src labels Oct 11, 2020
Provide helpers for a) spinning the event loop and
b) setting up and tearing down the objects involved in a single
Node.js instance, as they would typically be used.
The former helper is also usable inside Node.js itself,
for both Worker and main threads.
@addaleax addaleax added the request-ci label Oct 11, 2020
@github-actions github-actions bot removed the request-ci label Oct 11, 2020
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Oct 11, 2020

@lundibundi lundibundi added the author ready label Oct 13, 2020
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Oct 13, 2020

doc/api/embedding.md Outdated Show resolved Hide resolved
addaleax added a commit that referenced this issue Oct 14, 2020
Provide helpers for a) spinning the event loop and
b) setting up and tearing down the objects involved in a single
Node.js instance, as they would typically be used.
The former helper is also usable inside Node.js itself,
for both Worker and main threads.

PR-URL: #35597
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
@addaleax
Copy link
Member Author

@addaleax addaleax commented Oct 14, 2020

Landed in 9fd6122

@addaleax addaleax closed this Oct 14, 2020
@addaleax addaleax deleted the embed-boilerplate branch Oct 14, 2020
@MylesBorins MylesBorins added the backport-requested-v14.x label Oct 14, 2020
@MylesBorins
Copy link
Member

@MylesBorins MylesBorins commented Oct 14, 2020

This doesn't land cleanly on v14.x, should we backport?

joesepi added a commit to joesepi/node that referenced this issue Jan 8, 2021
Provide helpers for a) spinning the event loop and
b) setting up and tearing down the objects involved in a single
Node.js instance, as they would typically be used.
The former helper is also usable inside Node.js itself,
for both Worker and main threads.

PR-URL: nodejs#35597
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready backport-requested-v14.x c++ embedding lib / src
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants