Skip to content

feature: sbt 2 support#526

Merged
xerial merged 1 commit intoxerial:masterfrom
xuwei-k:sbt-2
Oct 10, 2024
Merged

feature: sbt 2 support#526
xerial merged 1 commit intoxerial:masterfrom
xuwei-k:sbt-2

Conversation

@xuwei-k
Copy link
Copy Markdown
Contributor

@xuwei-k xuwei-k commented Oct 9, 2024

No description provided.

// n = log(max / init) / log(multiplier)
val retryCountUntilMaxInterval = (math.log(maxInterval.toDouble / initInterval) / math.log(1.5)).toInt.max(1)
val numRetry = (timeoutMillis / maxInterval).ceil.toInt
val numRetry = (timeoutMillis / maxInterval).toDouble.ceil.toInt
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to Scala 3.3.4 (21.0.4, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                                                                           
scala> def f(x: Int) = x.ceil
-- [E008] Not Found Error: -----------------------------------------------------
1 |def f(x: Int) = x.ceil
  |                ^^^^^^
  |        value ceil is not a member of Int.
  |        An extension method was tried, but could not be fully constructed:
  |
  |            floatWrapper(x)
1 error found
                                                                                                                                           
scala> def f(x: Int) = x.toDouble.ceil
def f(x: Int): Double

@xerial xerial changed the title sbt 2 feature: sbt 2 support Oct 10, 2024
@xerial xerial added the feature label Oct 10, 2024
@xerial xerial merged commit 49d4315 into xerial:master Oct 10, 2024
@xuwei-k xuwei-k deleted the sbt-2 branch October 17, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants