What is a callback function?

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

What is a callback function?

21条回答
  •  庸人自扰
    2020-11-21 23:40

    One important usage area is that you register one of your function as a handle (i.e. a callback) and then send a message / call some function to do some work or processing. Now after the processing is done, the called function would call our registered function (i.e. now call back is done), thus indicating us processing is done.
    This wikipedia link explains quite well graphically.

提交回复
热议问题