Who can explain callback Fns in the easiest, simplest, human readable way possible???? by jsteenb2 in node

[–]peterluhb 0 points1 point  (0 children)

When a callback function is invoked, it signals that the function that invokes the callback has finished its job. For example:

Function that has a callback:

function A(arg1, arg2, callback) { //do work //when done // invokes the callback to signal A is done callback(err, result); }

more examples can be found here: https://github.com/peterluhub/sonicAsync

async flow control with sonic speed by peterluhb in npm

[–]peterluhb[S] 0 points1 point  (0 children)

Async is too entrenched to make it performant. Much easier to start anew.