Hands down the best explanation of completable futures out there. You're a master at explaining difficult concepts
@geekific
Жыл бұрын
Thanks! Glad it helped :)
@OldBalance42
11 ай бұрын
Great explanation, better than other guides on the internet.
@caiosaldanha2371
4 ай бұрын
That was the best explamnation so far! Thank you very much!
@mac_88_59
6 ай бұрын
This explanation is amazing and so clear. Thank you.
@petrow_
3 ай бұрын
So cool, at last. Thanks a lot!
@pavankumar-hg9ot
2 ай бұрын
Excellent information
@Official_Joshua
Жыл бұрын
Thanks so much for this video it helped alot. This is the best one yet. i tried all the other videos and this one made it clear
@gamesandstuff4188
5 ай бұрын
Great explanation
@faisalahmed4054
Ай бұрын
great explanation
@radhikashroff2643
9 ай бұрын
Excellent Explanation !
@iaburrahman3454
10 ай бұрын
Enjoyable explanation. Thanks a lot.
@shashikantnipanikar860
4 ай бұрын
Really helpful
@ppdmartell
Жыл бұрын
@geekific dude, your videos are jewels.
@misaelpereira9679
7 ай бұрын
Such a wonderful explanation with good examples of each scenario, definitely you get to the point!, you get a new suscriber!
@svalyavasvalyava9867
Жыл бұрын
Thank you!!! Great topic and explanation of it.
@user-wz9gs3xc4e
16 күн бұрын
Can u make a video on writing test cases for CompletableFutures
@geekific
16 күн бұрын
Will add it to my list, stay tuned!
@MD.PoragSarkar
Ай бұрын
Liked and subscribed...
@arnabchowdhury4892
9 ай бұрын
Please create video on fork and join
@abdelkrimhaddadi5098
Жыл бұрын
Perfect Thanks a lot !
@geekific
Жыл бұрын
Glad it was helpful!
@Talaria.School
Жыл бұрын
Thanks a lot
@acekokuren
Жыл бұрын
I wondered if you might have tackled it elsewhere, but when I attempt to use the .sleep() method, it says that an InterruptedException can be thrown. Now I can handle this by either adding it to the method signature, or use a try-catch block. Now when I use a try-catch block, there is a warning that it is not enough to simply ignore the exception that is thrown, it needs to be re-thrown or interrupted. I have used something along the lines of: ``` ... try { TimeUnit.x.sleep(y); } catch (InterruptedException e) { Thread.currentThread.interrupt(); } ... ``` Now I have no idea what the reason is behind this, and then when I have tried to throw the InterruptedException, it asks me to surround it in a try catch block inside the catch block. Not sure if this is thread specific, and if you covered it anywhere else, or able to cover it. Thanks in advance for any information.
@geekific
Жыл бұрын
First, you just gave me an idea for a video! Thanks :) And to briefly answer your question, yes what you are doing is the way to go, and that's because each thread has kind of an "interrupted" flag, and if you simply ignore the exception, the thread's interrupted flag will not be set, and it will continue executing as if nothing happened, or that thread won't be handled appropriately by other threads. By calling this method in the catch block, you are setting the interrupted flag on the thread that was interrupted, allowing other parts of your code to check it and handle the thread appropriately. Hope this partly answers it, and stay tuned for more videos!
Пікірлер: 25