GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: add documentation for AtExit hook by JCMais · Pull Request #1014 · nodejs/node

Conversation

@JCMais

@JCMais JCMais commented Mar 1, 2015

Copy link
Copy Markdown
Contributor

See #999.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
JCMais
JCMais reviewed Mar 1, 2015
View reviewed changes
Comment thread doc/api/addons.markdown Outdated

@JCMais JCMais Mar 1, 2015

Copy link
Copy Markdown
Contributor Author

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.

The explanation here seems confusing, suggestions?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@chrisdickinson chrisdickinson Mar 2, 2015

Copy link
Copy Markdown
Contributor

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.

"Callbacks are run in last-in, first-out order. AtExit takes two parameters: a pointer to a callback function to run at exit, and a pointer to untyped context data to be passed to that callback."

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@chrisdickinson

chrisdickinson commented Mar 2, 2015

Copy link
Copy Markdown
Contributor

I'm generally +1 on this – we might see if it breaks the addons tests (which generate tests from code snippets in the addons.markdown doc.)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnoordhuis
bnoordhuis reviewed Mar 11, 2015
View reviewed changes
Comment thread doc/api/addons.markdown Outdated

@bnoordhuis bnoordhuis Mar 11, 2015

Copy link
Copy Markdown
Member

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.

Maybe AtExit(at_exit_cb1, exports->GetIsolate() and then static_cast<v8::Isolate*>(arg) in the callback? v8::Isolate::GetCurrent() is going away someday so I'd prefer not to encourage its use in the documentation.

(That said, I realize it's used in plenty of other places in this document. I'll file a PR to clean that up.)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bnoordhuis

bnoordhuis commented Mar 11, 2015

Copy link
Copy Markdown
Member

@JCMais Can you make your sample conform to the style introduced in #1125 and wrap lines at 80 columns? Thanks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mscdex mscdex added the doc Issues and PRs related to Node.js documentation. label Mar 22, 2015
@Fishrock123

Fishrock123 commented Apr 4, 2015

Copy link
Copy Markdown
Contributor

Ping @JCMais, are you able to update?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

OpenSourceSteve and others added 5 commits April 4, 2015 20:20
@OpenSourceSteve @JCMais
Update addons.markdown
14c00ce
Updates addons.markdown to mention AtExit() function.  Addresses issue #8324.
@OpenSourceSteve @JCMais
Update addons.markdown
a8e8fc1
Updated description, added arguments and arguments types, and quick code example.
@OpenSourceSteve @JCMais
Update addons.markdown
857abfe
Incorporated latest suggestions.
@JCMais
doc: Add documentation for AtExit hook
cd3aa02
Closes #999
@JCMais
Removed call to v8::Isolate::GetCurrent(), wrap line at 80.
3e75462
@JCMais

JCMais commented Apr 4, 2015

Copy link
Copy Markdown
Contributor Author

@Fishrock123 Sorry, totally forgot about this pull request. Updated.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JCMais JCMais changed the title Add documentation for AtExit hook doc: add documentation for AtExit hook Apr 10, 2015
@chrisdickinson chrisdickinson added the land-on-master label Apr 17, 2015
@brendanashworth

brendanashworth commented May 23, 2015

Copy link
Copy Markdown
Contributor

ping @bnoordhuis for review?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnoordhuis pushed a commit that referenced this pull request May 26, 2015
@OpenSourceSteve @bnoordhuis
doc: add documentation for AtExit hook
98649fd
Fixes: #999
PR-URL: #1014
Reviewed-By: Ben Noordhuis <[email protected]>
@bnoordhuis

bnoordhuis commented May 26, 2015

Copy link
Copy Markdown
Member

Landed in 98649fd with some fixes to make make test-addons pass. Cheers.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis bnoordhuis closed this May 26, 2015
This was referenced May 27, 2015
Release proposal: v3.0.0 #1807
Closed
Release proposal: v2.2.0 #1808
Merged
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
@OpenSourceSteve @andrewdeandrade
doc: add documentation for AtExit hook
8db847f
Fixes: nodejs/node#999
PR-URL: nodejs/node#1014
Reviewed-By: Ben Noordhuis <[email protected]>
@bertlea bertlea mentioned this pull request Jun 28, 2018
Memory usage (external) reports a negative value? #21570
Closed
@leonardoadame leonardoadame mentioned this pull request Mar 26, 2024
[Snyk] Fix for 1 vulnerabilities leonardoadame/node#697
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

doc Issues and PRs related to Node.js documentation.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@JCMais @chrisdickinson @bnoordhuis @Fishrock123 @brendanashworth @mscdex @OpenSourceSteve
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.