Going with the flow - Kotlin Vocabulary

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 47

  • @xKERiiix
    @xKERiiix 4 роки тому +116

    Nice, but audio quality should be better

    • @Mike-er2ih
      @Mike-er2ih 4 роки тому +4

      Agreed. A small t-shirt microphone would make a great change.

    • @sevarbg83
      @sevarbg83 4 роки тому +5

      We need an official google's opinion on replacing livedata with stateflow. Please.

    • @RaviTejagameboy
      @RaviTejagameboy 3 роки тому

      @@sevarbg83 They have already added databinding support for Stateflow in canary version.

    • @theai2020
      @theai2020 2 роки тому

      Yes its hard to catch up sometime

    • @SunAndMoon-zc9vd
      @SunAndMoon-zc9vd 3 місяці тому

      ​@@Mike-er2ihA giant t-shirt microphone could also work well though.

  • @abu-bakrpereirakebe508
    @abu-bakrpereirakebe508 3 роки тому +1

    Rewrote the entire application to use flow and greatly improved performance. Great video.

  • @rajbopche7992
    @rajbopche7992 2 роки тому +2

    Since flow are executed in the same context we called collect from, the video example fetches the latest news on the main thread. In-order to transfer fetch the latest news to the worker/IO thread we can make use of flowOn() intermediate operator.
    For details please check out the Android docs on Kotlin Flow (section - Executing in different coroutine context)

  • @juanf.mateosredondo8830
    @juanf.mateosredondo8830 2 роки тому

    Thanks, Manuel. Now I can go with the flow as Queen of the Stone Age does.

  • @donellmtabvuri1323
    @donellmtabvuri1323 3 роки тому +3

    This is a very good explanation, the LiveData and Flow codelab was challenging for me and this just cleared up all the frustration I was having using Flow, gracias!!

  • @JaceNotBeleren
    @JaceNotBeleren 4 роки тому +2

    Thx Google. Whats the defference to LiveData?

  • @StevdzaSan
    @StevdzaSan 4 роки тому +9

    Good explanation 👏

  • @PedroBarbosaRoman
    @PedroBarbosaRoman 4 роки тому +4

    Duration of video: 13:37 :)

  • @hessamemami6936
    @hessamemami6936 4 роки тому +9

    Great talk, It would be awesome if you also make a video about Stateflow

  • @ctarabusi
    @ctarabusi 4 роки тому

    In 4:36 should be while(isActive) to stop emitting when the coroutine scope is cancelled?

  • @ArjunVerma-lq4cf
    @ArjunVerma-lq4cf 3 роки тому +1

    Great video, I didn't understand the firebase part in the doc but in this video, I know now what it is, and also it is a good idea to explain the same code in video and doc, Keep up the good work!

  • @pushpitakarmakar7425
    @pushpitakarmakar7425 Рік тому

    Doesn't this use case of making requests in fixed intervals fall under a WorkManager?

  • @samuelho6658
    @samuelho6658 Рік тому

    Since flows can be active over a long period of time, does that mean that they should be called from the IO dispatcher? ie. In the first example, there is a while loop in the flow. Would that result in useless work being done / a coroutine being active when it's not needed for most of the time?

  • @maartentrompper9618
    @maartentrompper9618 3 роки тому +1

    Flow is pretty cool, but I find it quite difficult to manage coroutine contexts when making Flow into a StateFlow -- and unsure what the heck is going on. It would be nice to get some easy-to-understand resources about this.

  • @erictsang0
    @erictsang0 4 роки тому +1

    Great explanation with lots of relatable examples!!! Replacing LiveData with Flow in my side project haha

    • @alexandrebrownAI
      @alexandrebrownAI 4 роки тому +4

      Consider trying .asLiveData() when consuming a Flow, this way you get the added benefits of LiveData together with Flows

  • @dreamerslab
    @dreamerslab 2 роки тому

    So flow is a stream of data in which we can emit new data. Cool

  • @ssverma1916
    @ssverma1916 4 роки тому +1

    Nice, Now waiting for the state and shared flow video ...

  • @jakubwegrzyn3798
    @jakubwegrzyn3798 4 роки тому +1

    How about integration with jetpack compose? Is there any?

  • @YoutCodeProgrammingTutorials
    @YoutCodeProgrammingTutorials 3 роки тому

    can I ask u what tool u are using to make this great presentations !?

  • @mehulbisht9708
    @mehulbisht9708 4 роки тому +1

    Thanks for the explanation Manuel !

  • @soumen_pradhan
    @soumen_pradhan 2 роки тому

    Why does it feel like they removed callback hell using suspend functions and then added it right back using callbackFlow,

  • @jaya-surya-t
    @jaya-surya-t 4 роки тому

    CallbackFlow is still under "ExperimentalCoroutinesApi" right ?, any ideas on when it would be promoted to completely stable ?

  • @jess_o
    @jess_o 4 роки тому +1

    Great video, thank you

  • @withKaaveh
    @withKaaveh 4 роки тому

    Wow! Flow is very amazing!

  • @yoyochoo
    @yoyochoo 4 роки тому

    Good guide

  • @ismailnurudeen
    @ismailnurudeen 4 роки тому +1

    Amazing, I'm replacing RxJava in our current project with Flows.

  • @mnouman6736
    @mnouman6736 4 роки тому

    this was helpful.

  • @pantelischas9460
    @pantelischas9460 4 роки тому

    great video!!!

  • @70ME3E
    @70ME3E 4 роки тому

    well delivered Manuel! :)

  • @goutham2433
    @goutham2433 3 роки тому

    Not able to catch your Flow

  • @leileiliulei6150
    @leileiliulei6150 3 роки тому

    Good

  • @СергейПанов-з3ц
    @СергейПанов-з3ц 4 роки тому

    Thanks.

  • @jesselima_dev
    @jesselima_dev 4 роки тому

    Awwwwwesome!!!! clapclapclapclapclapclapclapclap

  • @Wi1dLife
    @Wi1dLife 4 роки тому +2

    So the Flow is another LiveData...

    • @codinginflow
      @codinginflow 4 роки тому +16

      It's better than LiveData because it can hold more than 1 value

    • @Wi1dLife
      @Wi1dLife 4 роки тому +2

      @Artem Zanin *Flowable 😁

    • @alexconner3958
      @alexconner3958 4 роки тому

      @Artem Zanin pls no

    • @withKaaveh
      @withKaaveh 4 роки тому

      @@codinginflow We will wait for another playlist of your channel for using Flow in a sample app 😄

    • @maskedredstonerproz
      @maskedredstonerproz 4 роки тому

      @@codinginflow so basically LiveData on steroids??