How to set it to tell you an error message if query takes too long

hi, how do you tell select2 to timeout with an error message if a query to the back end takes too long

https://select2.org/data-sources/ajax