I saw several questions like this, regarding post vs dispatch when only handler is passed which is posted on associated executor. I understand that dispatch can invoke synchronous call of handler without queueing it, when current execution is performed on the associated executor. I thought the same principle would be applied to second overload, but it is specifically said in the documentation that The function object is queued for execution, and is never called from the current thread prior to returning from dispatch()
.
So what is the difference between post and dispatch in this case?