Callback(continuation, handler function)

A function handed to other code so that code can call it once the work it was asked for is done. The other code decides when and how often it runs, which is why a callback body has to be safe to run more than once.

Back to the glossary