mukoedo1993 / my-private-blog

private notes... In issues.... blah
0 stars 0 forks source link

callback as a common concept in Programming #9

Open mukoedo1993 opened 3 years ago

mukoedo1993 commented 3 years ago

wikipedia: https://en.wikipedia.org/wiki/Callback_(computer_programming)

mukoedo1993 commented 3 years ago

In computer programming, a callback, also known as a "call-after"[1] function, is any executable code that is passed as an argument to other code; that other code is expected to call back (execute) the argument at a given time. This execution may be immediate as in a synchronous callback, or it might happen at a later point in time as in an asynchronous callback. Programming languages support callbacks in different ways, often implementing them with subroutines, lambda expressions, blocks, or function pointers.