What is cb() in Node?

前端 未结 3 1352
离开以前
离开以前 2021-02-01 18:29

Where are people getting cb() from, is this a Node thing or vanilla JS thing?

For example:

Managing Node.js Callback Hell with Promises, Generators and Other Ap

3条回答
  •  孤街浪徒
    2021-02-01 18:31

    From the Vanilla JS, you can declare a function and pass throuw parameters a declaration of another function, that can called async

    https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes/Using_js-ctypes/Declaring_and_Using_Callbacks

提交回复
热议问题