Closed PetrosPapapa closed 2 years ago
We should maintain separate Distributions for Long and Double values.
Distribution
Long
Double
For example Task.withDuration should (only) accept a Long: https://github.com/workflowfm/proter/blob/4124ffac09a57ea828e2a915d37d21804baea9e4/proter/src/main/scala/com/workflowfm/proter/Task.scala#L274
Task.withDuration
Long to Double conversions may truncate and are deprecated in recent Scala versions (see compiler deprecation warnings).
We should maintain separate
Distribution
s forLong
andDouble
values.For example
Task.withDuration
should (only) accept aLong
: https://github.com/workflowfm/proter/blob/4124ffac09a57ea828e2a915d37d21804baea9e4/proter/src/main/scala/com/workflowfm/proter/Task.scala#L274Long
toDouble
conversions may truncate and are deprecated in recent Scala versions (see compiler deprecation warnings).