ENH: Added ui_dispatch() which will call a handler immediately if it is already in the main thread, but move it to the main thread otherwise.
ENH: Added ui_dispatch() which will call a handler immediately if it is already in the main thread, but move it to the main thread otherwise.

burnpanck/traits,burnpanck/traits