Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8195653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:12:38+00:00 2026-06-07T05:12:38+00:00

Node js module during the operation requests some resources on remote service, that better

  • 0

Node js module during the operation requests some resources on remote service, that better be released when it exits. We know that there is very nice:

process.on('exit', function() {
    // ...
});

But then it is said that it won’t wait for any async operations to complete. So the question is if there’s any workaround (there should be some, since it’s quite widespread usage case)? Maybe one could start separate process or something?..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:12:40+00:00Added an answer on June 7, 2026 at 5:12 am

    Only workaround I’ve seen is adding a wait loop and not finishing/returning from the .on(‘exit’, function until a property has been updated globally.
    Totally a bodge-job design-wise, very bad practice, but I’ve seen it work for short calls (I think there is some timeout but I never bothered to look into the details).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any node module that I can use to analyze the log file?
Is there a standard way to require a Node module located at some URL
I'm trying to write a Node.js module, using C++, that wraps and exposes some
I'm looking for a node.js module that can generate and parse mime multipart/related http
how can i manage communication with the database in node.js? is there any module
Is there a recommended way of developing a node module if I want to
Here's the situation… So I've created a Node.js module that acts as an interface
I'm doing some content importing using the node import module in drupal. My problem
Is there any node.js module which can do mac address filtering . Basically I
I have a third party node module, that uses the old sys naming scheme,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.