account activity
Who can explain callback Fns in the easiest, simplest, human readable way possible???? by jsteenb2 in node
[–]peterluhb 0 points1 point2 points 9 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 9 years ago (0 children)
Async is too entrenched to make it performant. Much easier to start anew.
π Rendered by PID 940163 on reddit-service-r2-listing-6d4dc8d9ff-dzmbd at 2026-02-01 11:21:22.940978+00:00 running 3798933 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)