GithubHelp home page GithubHelp logo

Comments (7)

mdiep avatar mdiep commented on April 28, 2024 1

I just added #88 to the 1.0 milestone because #22 was in there. I think those are the last things that we need to resolve.

from reactiveswift.

ikesyo avatar ikesyo commented on April 28, 2024

We probably need an extension like this:

extension Date {
    internal func addingDispatchTimeInterval(_ interval: DispatchTimeInterval) -> Date {
        switch interval {
        case let .seconds(s): ...
        case let .milliseconds(ms): ...
        ...
        }
    }
}

from reactiveswift.

liscio avatar liscio commented on April 28, 2024

We probably need an extension like this:

Should we not instead remove the use of Date entirely in favour of DispatchTime? I never did like using {NS,}Date to represent a point in time…

The usage gets much nicer, too. Compare using Date().addingDispatchTimeInterval(.milliseconds(300)) vs. .now() + .milliseconds(300), for example.

from reactiveswift.

NachoSoto avatar NachoSoto commented on April 28, 2024

Yup πŸ‘

from reactiveswift.

liscio avatar liscio commented on April 28, 2024

I've gone ahead and done much of the work already here for a whole-hog replacement of Date and TimeInterval: master...liscio:cl-dispatchwalltime

Unfortunately, it appears that DispatchWallTime (and DispatchTime, but we don't want to base our scheduler on that) is busted in the Swift standard library. I filed a bug (SR-2807) to track the issues I encountered. Specifically, the crash when comparing two DispatchWallTimes is going to block progress.

from reactiveswift.

liscio avatar liscio commented on April 28, 2024

I've also gone ahead and opened #48 with the approach that was originally proposed, since it's not practical to expect the above issue to get corrected in time for 1.0.

from reactiveswift.

ashfurrow avatar ashfurrow commented on April 28, 2024

It looks like this was fixed by #48 (good job!). Is the 1.0 milestone up to date? This is the only open issue left in it at the moment.

from reactiveswift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.