Invoke callback with data on the window thread. callback is guaranteed to have executed when this function returns.
function to invoke
Invoke callback with data on the window thread. callback is guaranteed to have executed when this function returns.