fun schedule()

in src/main/kotlin/org/jetbrains/teamcity/github/controllers/PullRequestMergeBranchChecker.kt [57:68]


        fun schedule(executor: ScheduledExecutorService): Boolean {
            if (attempt in DELAYS.indices) {
                if (myScheduledActions.putIfAbsent(info, this) == null) {
                    future = executor.schedule(this, DELAYS[attempt++], TimeUnit.SECONDS)
                    return true
                }
            } else {
                LOG.info("Gave up trying to fetch pull request merge branch details for repo ${info.id}")
                active = false
            }
            return false
        }