Project Reactor Essentials 23 - zip and zipWith

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น • 10

  • @Akio_F
    @Akio_F 3 หลายเดือนก่อน

    Very helpful, thanks

  • @believeus1
    @believeus1 3 ปีที่แล้ว +5

    Could someone tell me why use flatMap and Flux.just() instead of map ?

  • @sathishrengan4930
    @sathishrengan4930 4 ปีที่แล้ว

    this is one of the clear explanation, thanks got to know how zip exactly works.

  •  5 หลายเดือนก่อน

    Apparently zipWith has several ways to apply it to the stream, but interesting thanks big dog.

  • @prakritidevverma4315
    @prakritidevverma4315 2 ปีที่แล้ว +1

    grand blue..hahaha, a true man of culture I see.

    • @DevDojoAcademy
      @DevDojoAcademy  2 ปีที่แล้ว +2

      Finally another man of culture.

  • @mads2k5
    @mads2k5 ปีที่แล้ว

    Whats the difference between zip() and zipWhen() besides that the first supports only two streams?

  • @TheSuri1021
    @TheSuri1021 2 ปีที่แล้ว

    i have service code like this
    forexample
    line 1) Mono.zip(map(string, object), stringlist, customers).zipwhen(resp->
    line 2) custom.readdevice("abcde", false).collectmap(sss->sss.getdeviceid()))
    where custom.readdevice("abcde", false) is a mock method
    i mocked this method in test class
    Device device = new Device();
    sss.setdeviceid("DD");
    Flux fluxdevice = Flux.just(device);
    Mockito.lenient().when(custom.readdevice("abcde", false)).thenReturn(fluxdevice);
    when i debug this code until line1 code getting executed after that mocked method not called
    if i try mocked method outside Mono.zip it executes very well but not in Mono.zip
    please help me sir

  • @anilvlogs6363
    @anilvlogs6363 3 ปีที่แล้ว

    Anything wrong with the below code, the lambda function is not executing. How to use the args ? Any help would be appreciated
    Mono test = Mono.just("test");
    Mono testtwo = Mono.just("testTwo");
    Mono str = Mono.zip(args -> {
    return (String) args[0];
    });
    System.out.println(str); // This is printing MonoEmpty