Giter Site home page Giter Site logo

Comments (4)

mdiep avatar mdiep commented on April 28, 2024

I don't understand what you're trying to do. Could you explain a bit more? Giving specifics about your use case would probably help.

from reactiveobjc.

bimawa avatar bimawa commented on April 28, 2024

@mdiep yea of course. I'm heave a view with header and 3 subviews after header. By default header is hidden and height ==0, and i'm heave signal for 3 subviews they catch signal and made animation. But sometimes app receive additional info where i'm must show header view subscribe it on current signal like 4th observer and catch first call for calculate header animation before other 3 subviews. After calcuation frames for header, i'm can made calculation for subviews with animations and etc. But header data subscribed last after all views, and brick all calculation sequence.
Yea i know, its a dumb case.
I'm just want to know its will be useless feature or not? now i fixed this case with addidng delay:.2 for 3 subviews, and no delay for header view.

from reactiveobjc.

mdiep avatar mdiep commented on April 28, 2024

If you want to do things in sequence, you can use flatMap, switchToLatest, concat, or then.

[[self
    doThing1]
    then:^{
        return [RACSignal merge:@[ [self doThing2], [self doThing3] ]];
    }];

If you want to get all the information in parallel and then do something, you can use zip or combineLatest.

[[RACSignal
    zip:@[ [self thing1], [self thing2] ]]
    reduceEach^(id result1, id result2) {
        ...
    }];

You have an implicit ordering between your signals. You want to make that explicit by encoding it in the signal chain—probably using one of those two methods.

from reactiveobjc.

bimawa avatar bimawa commented on April 28, 2024

@mdiep ok thank you i'll try.

from reactiveobjc.

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.