deferred function

noun
UK /dɪˈfɜːd ˈfʌŋkʃən/
US /dɪˈfɝːd ˈfʌŋkʃən/

A deferred function is a job that is saved to be done later instead of right away.

The program puts the cleanup in a deferred function so it runs after the game ends.


OTHER MEANINGS

2. In programming, a function whose execution is put off until a later time or event.

The deferred function runs only after the file finishes loading.

3. In Go, a function call that is postponed until the surrounding function returns.

He used a deferred function to close the file safely.

4. A task set aside to be handled after more important work is finished.

The deferred function handles the leftover chores at the end of the day.