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 9163915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:33:24+00:00 2026-06-17T14:33:24+00:00

We are using Node for developing and 95% of code is Async, working fine.

  • 0

We are using Node for developing and 95% of code is Async, working fine.

For some 5% (one small module), which is sync in nature [and depends on other third party software],

and we are looking for
1. “Code to block until call back is finished”
2. At a time only one instance of function1 + its callback should be executed.

PS 1: I do completely agree, Node is for async work, We should avoid that, but this is separate non-realtime process.

PS 2: If not with Node any other Serverside JS framework? Last option is to use other lang like python, but if anything in JS possible, we are ready to give it a shot!

  • 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-17T14:33:25+00:00Added an answer on June 17, 2026 at 2:33 pm

    SEQ should solve your problem.

    For an overview about sync modules please look at http://nodejsrocks.blogspot.de/2012/05/how-to-avoid-nodejs-spaghetti-code-with.html

    Seq()
     .seq(function () {
       mysql.query("select * from foo",[], function(err,rows,fields) {
    
            this(null, rows);
       });
     })
     .seq(function(mysqlResult) {
         console.log("mysql callback returnes:"+mysqlResult);
     })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on developing a node.js app using mongoDB as a database. I'm working
I am developing Node.js application in Cloud9IDE and I problem using module (like node-expat
I'm developing an application using node.js + express which contains a structure allowing the
I am developing a small app in Node.js. I am just using Node.js for
I'm developing a websockter server using node.js and I've discovered some quirks in Chrome.
I'm developing a small app as practice using node.js, Backbone, and socket.io, and I've
Ok, so I am developing a multiplayer game using: Node.js, Sockets.io & Redis Anyway
I am developing a website in node.js and I am using Parse.com to handle
I'd like to start developing Google Chrome extension using node.js (since I've already written
I'm developing an application using PHP and jQuery in which an input must take

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.