• Nathan Harris's avatar
    Use `TimeAmount` for any `timeout` command arguments · 1ef315e2
    Nathan Harris authored
    The goal is to have a strong-typed API for type-safety in arbitrary values, such as trying to use
    Int to represent time - as '3' could mean any unit of time, leaving many places for errors and bugs.
    Switch all current APIs that accept a `timeout` argument to use `NIO.TimeAmount` instead of a plain `Int`.
    Developers will have an easier time reasoning about their own code as to what values might mean when working with
    timeouts in Redis APIs.
SortedSetCommands.swift 37.9 KB