Vertx 3.4: Difference between running code immediately and context.runOnContext

Viewed 1987

I am trying to figure out the basics of Vertx. I was going through standard doc on it here, where I stumbled upon a section on context object. It says that it lets you run your code later by providing a method called runOnContext. The thing I don't understand is, in which case would I choose to invoke a (non-blocking) block of code later? If the code is non-blocking, it will take same amount of time, whether you execute it now or later.

Can anyone please tell me, in which case, context.runOnContext will be helpful?

1 Answers
Related