dispatch

expect fun dispatch(fn: WebviewKo.() -> Unit)

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.

Parameters

fn

the function to be executed on the main thread.

actual fun dispatch(fn: WebviewKo.() -> Unit)

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.

Parameters

fn

the function to be executed on the main thread.

actual fun dispatch(fn: WebviewKo.() -> Unit)

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.

actual fun dispatch(fn: WebviewKo.() -> Unit)

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. Please remember to call WebviewKo.freeze before sharing between threads

Parameters

fn

the function to be executed on the main thread.