• Nathan Harris's avatar
    Use `TimeAmount` for any `timeout` command arguments · 1ef315e2
    Nathan Harris authored
    Motivation:
    
    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.
    
    Modifications:
    
    Switch all current APIs that accept a `timeout` argument to use `NIO.TimeAmount` instead of a plain `Int`.
    
    Result:
    
    Developers will have an easier time reasoning about their own code as to what values might mean when working with
    timeouts in Redis APIs.
    1ef315e2
SortedSetCommands.swift 37.9 KB