setTimeout

fun setTimeout(timeout: Duration?): T

Sets a timeout for the search query.

Return

the current instance of the search query with the updated timeout.

Parameters

timeout

the maximum time to wait for the search query to complete. If the search takes longer than this time, it will be terminated.

See also