What is a callback function?

前端 未结 21 2964
耶瑟儿~
耶瑟儿~ 2020-11-21 23:01

What is a callback function?

21条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-21 23:43

    Callbacks are most easily described in terms of the telephone system. A function call is analogous to calling someone on a telephone, asking her a question, getting an answer, and hanging up; adding a callback changes the analogy so that after asking her a question, you also give her your name and number so she can call you back with the answer.

    -- Paul Jakubik, "Callback Implementations in C++"

提交回复
热议问题