Giter VIP home page Giter VIP logo

Comments (8)

d4tocchini avatar d4tocchini commented on July 27, 2024

@bergie, I thought we fixed this issue by attaching eaten content to the nodes? Subtrees will likely eat an item or a block, not being able to use such subtree in an all is a very strange limitation. Taylor is doing this now...

If this limitation is to remain, we will likely need another all composite promise that is synchronous.

from flowerflip.

bergie avatar bergie commented on July 27, 2024

@d4tocchini we do attach them, but only after the sub-promises resolve. Since JS is single-threaded, this would in effect makes the promises in .all run serially, not in parallel. So, in that sense it probably works.

from flowerflip.

bergie avatar bergie commented on July 27, 2024

Hmm... I think it actually works, but we'd need a test to prove it

from flowerflip.

paulyoung avatar paulyoung commented on July 27, 2024

I added a (failing) spec for this in 322cd06.

from flowerflip.

paulyoung avatar paulyoung commented on July 27, 2024

@cbchouinard: another docs update needed here.

from flowerflip.

bergie avatar bergie commented on July 27, 2024

Note: this only works as long as the tasks given to all are synchronous

from flowerflip.

paulyoung avatar paulyoung commented on July 27, 2024

@bergie: could you clarify? I'm not sure what that translates to in the API.

from flowerflip.

bergie avatar bergie commented on July 27, 2024

@paulyoung currently we're running every component in flowerflip synchronously, and that allows eating in all to work since one task completes before the next starts. If the tasks were async, they'd all start at the same time, and wouldn't see what the others do. Not a concern for design systems (where everything will be sync), but something to keep in mind.

from flowerflip.

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.