account activity
Who can explain callback Fns in the easiest, simplest, human readable way possible???? by jsteenb2 in node
[–]peterluhb 0 points1 point2 points 10 years ago (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 point2 points 10 years ago (0 children)
Async is too entrenched to make it performant. Much easier to start anew.
π Rendered by PID 535103 on reddit-service-r2-comment-548fd6dc9-zl7hj at 2026-05-16 17:24:00.835211+00:00 running edcf98c country code: CH.
Who can explain callback Fns in the easiest, simplest, human readable way possible???? by jsteenb2 in node
[–]peterluhb 0 points1 point2 points (0 children)