M
M
mbcsoft2016-04-06 02:15:15
Java
mbcsoft, 2016-04-06 02:15:15

Non-preemptive multitasking in Java (Coroutine, Fibers), why not Callable?

I watched the video www.youtube.com/watch?v=YWLHELcvNbE
the question is. Why not just use Callable?

DbA.get(id, new OnCompleted(){ 
                      @override 
                       success(MyResult result){ ..; }
                       error(NotFoundException e){ ..; }
                       error(Exception e){ ..; }
                 }
         );

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-04-06
@mbcsoft

callback hell. We do not want to rewrite the code especially because of the execution model.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question