terminationfunction

noun
UK /ˌtɜːmɪˈneɪʃən ˈfʌŋkʃən/
US /ˌtɜːrməˈneɪʃən ˈfʌŋkʃən/

A termination function is a special job in a computer program that tells it when to stop.

The programmer added a termination function so the game would end after the last level.


OTHER MEANINGS

2. In mathematics, a function that decides when a repeating process should end.

The algorithm used a termination function to stop after reaching the target value.

3. A built-in feature that closes a program safely when it finishes.

The app's termination function saved all open files before closing.

4. A rule in a system that marks the final step of a task.

The robot's termination function made it return to its charging dock.