18:12 doesn't make any sense to me. You just created a new completableFuture and it is not linked with the single thread executor you just created and submitted, The returned object from the STR should be assigned to completableFuture correct?
Is it necessary to link CompletableFuture with Single Thread Executor? This should answer your first question. To your second one - Yes, we can return an object/null but I tried to show a simple example which even beginners can understand.
This is a great tutorial. Thanks for your effort!!!
18:12 doesn't make any sense to me. You just created a new completableFuture and it is not linked with the single thread executor you just created and submitted, The returned object from the STR should be assigned to completableFuture correct?
Is it necessary to link CompletableFuture with Single Thread Executor? This should answer your first question.
To your second one - Yes, we can return an object/null but I tried to show a simple example which even beginners can understand.
Could you please keep the document link which you refering in chat it would be good
I've added that in the description now. Thanks for pointing it out!
❤️