API Design · Senior · Question 64 of 75

Why should timeouts be part of an API's documented contract?

Explanation

For long work, the contract should switch to async operations instead of long timeouts.

Further reading

Problem with a question

API Design · Senior · question 64

Test yourself

Take the API Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz