Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for responseCount (0.17 sec)

  1. docs/recipes.md

        ```kotlin
        if (response.responseCount >= 3) {
          return null // If we've failed 3 times, give up.
        }
        ```
    
        This above code relies on this `responseCount` extension val:
    
        ```kotlin
        val Response.responseCount: Int
          get() = generateSequence(this) { it.priorResponse }.count()
        ```
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
Back to top