dispatch
Posts a function to be executed on the main thread.
It safely schedules the callback to be run on the main thread on the next main loop iteration. Like invokeLater
in Swing
Parameters
fn
the function to be executed on the main thread.
Posts a function to be executed on the main thread.
It safely schedules the callback to be run on the main thread on the next main loop iteration. Like invokeLater
in Swing
Parameters
fn
the function to be executed on the main thread.
Posts a function to be executed on the main thread.
It safely schedules the callback to be run on the main thread on the next main loop iteration. Like invokeLater
in Swing
Parameters
fn
the function to be executed on the main thread.