Why is a function and a callback non-blocking in Node.JS?

后端 未结 4 1782
你的背包
你的背包 2020-12-06 01:37

The novice understanding of Node is that if I re-write synchronous, or in-line code, to utilize functions / callbacks, I can ensure that my code is non-blocking. I\'m curio

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 02:35

    I'm not well at English, so I can't understand what you exactry mean. But I can say that 'multi thread' and 'asynchronous' are similar but different term. Even if single thread can peform as 'asynchronous'.

    This document is not for node(it's for a python asynchronous framework "twisted") but might be helpful for you.

    sorry for my poor English.

提交回复
热议问题