Giter Site home page Giter Site logo

Comments (4)

zach-klippenstein avatar zach-klippenstein commented on May 16, 2024

Specifically looking for feedback from @rjrjr @loganj @vRallev @afollestad.

from workflow.

rjrjr avatar rjrjr commented on May 16, 2024

Of the people you pinged I'm probably the least qualified to respond, so I'll ignore that and answer anyway.

I definitely gravitate to option 3, since it involves the least departure from standard co-routine practice.

Between your suboptions 3.i (default to EmptyCoroutineContext like usual, and don't prematurely optimize doLaunch), and 3.ii (default to Unconfined, since that's been working okay so far, and is likely the 99% case), 3.ii sounds like the right thing. I'm less confident there, but it seems to strike a balance: it does the not-quite-normal-but-right-for-reactors thing that we're already doing, while deviating from standard practice in as minimal a way as possible.

One question: is this difficulty a sign that forcing doLaunch and onReact to share a single dispatcher is a mistake?

from workflow.

zach-klippenstein avatar zach-klippenstein commented on May 16, 2024

is this difficulty a sign that forcing doLaunch and onReact to share a single dispatcher is a mistake?

I mean, that's basically the heart of the question I'm trying to answer.

Since the doLaunch machinery doesn't care, I don't think it makes sense to put the effort in to avoid dispatch unless we can prove there's actually a benefit to doing so.

from workflow.

zach-klippenstein avatar zach-klippenstein commented on May 16, 2024

Being addressed in the rewrite.

from workflow.

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.