cancellation

Stopping work that is no longer needed, such as a search request made obsolete by a new keystroke.

In more detail

Proper cancellation frees network, memory and CPU and prevents stale results from overwriting fresh ones. On the web the standard tool is AbortController.

Related terms

Taught in

References