Top "Callback" questions

A callback is a piece of code (i.e. the address or reference of a function or method or a lambda expression) that is passed as an argument to other code, which is expected to call back (execute) the argument at some convenient time.

Difference between array_map, array_walk and array_filter

What exactly is the difference between array_map, array_walk and array_filter. What I could see from documentation is …

php arrays callback
jQuery callback for multiple ajax calls

I want to make three ajax calls in a click event. Each ajax call does a distinct operation and returns …

jquery ajax callback
How to refactor Node.js code that uses fs.readFileSync() into using fs.readFile()?

I'm trying to get my head around synchronous versus asynchronous in Node.js, in particular for reading an HTML file. …

node.js callback readfile fs
C++ callback using class member

I know this has been asked so many times, and because of that it's difficult to dig through the cruft …

c++ function callback member
Callback to a Fragment from a DialogFragment

Question: How does one create a callback from a DialogFragment to another Fragment. In my case, the Activity involved should …

android android-fragments callback android-dialogfragment
How to force Sequential Javascript Execution?

I've only found rather complicated answers involving classes, event handlers and callbacks (which seem to me to be a somewhat …

javascript asynchronous callback execution synchronous
Pass variable to function in jquery AJAX success callback

I am trying to preload some images with a jQuery AJAX call, but am having real problems passing a (url) …

jquery ajax callback
Java executors: how to be notified, without blocking, when a task completes?

Say I have a queue full of tasks which I need to submit to an executor service. I want them …

java callback notify executor
How can I run a directive after the dom has finished rendering?

I've got a seemingly simple problem with no apparent (by reading the Angular JS docs) solution. I have got an …

jquery dom callback angularjs document-ready
javascript function wait until another function to finish

I have two javascript functions that are called from android. After long debug sessions finally I realized that the problem …

javascript jquery callback jquery-deferred