Will allow specific platforms to override it and avoid blocking on the
main/GUI thread.
(cherry picked from commit 1b6e3458b2)
Will allow specific platforms to override it and avoid blocking on the
main/GUI thread.
(cherry picked from commit 1b6e3458b2)