What is callback?

Report a typo

In the following example, we call the prepareData function with one lambda function as an argument.

prepareData { data ->
    sendToServer(data)
}

This sendToServer lambda is often referred to as a callback. What does the term 'callback function' mean?

Select one option from the list
___

Create a free account to access the full topic