dispatch

public final Unit dispatch(Function1<WebviewKo, Unit> fn)

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.

public final Unit dispatch(Function1<WebviewKo, Unit> fn)

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.

public final Unit dispatch(Function1<WebviewKo, Unit> fn)

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.