What are deferred callbacks?

Posted by tentimes on Programmers See other posts from Programmers or by tentimes
Published on 2012-04-09T13:36:20Z Indexed on 2012/04/09 23:47 UTC
Read the original article Hit count: 240

Filed under:
|

I understand the idea of a callback, where I pass a function into another function and that function then uses the supplied function at will.

I am struggling to understand deferred callbacks, even after googling it.

Could someone provide a simple explanation please? I program in Ruby, but also know C/C++ a bit, but most of all I was a experienced assembly language programmer. So I am wondering is it a bit like a stack of callback addresses that get pop'd? I am hoping to learn jquery or node.js and these deferred callbacks seem integral to both. I understand basic threading principles (though mutex object makes my head hurt ;)

© Programmers or respective owner

Related posts about jQuery

Related posts about node.js