runOnMain

actual fun runOnMain(block: () -> Unit)

Runs the provided block on the main thread

Parameters

block

the code to run on the main thread.

expect fun runOnMain(block: () -> Unit)

Runs the provided block on the main thread

Parameters

block

the code to run on the main thread.

actual fun runOnMain(block: () -> Unit)

Runs the provided block on the main thread

Parameters

block

the code to run on the main thread.

actual fun runOnMain(block: () -> Unit)

Runs the provided block on the main thread. Since JavaScript does not have any threading, this will just run block

Parameters

block

the code to run on the main thread.

actual fun runOnMain(block: () -> Unit)

Runs the provided block on the main thread

Parameters

block

the code to run on the main thread.