openrndr / org.openrndr.draw / DrawThread

DrawThread

interface DrawThread (source)

Properties

dispatcher

abstract val dispatcher: CoroutineDispatcher

drawer

abstract val drawer: Drawer

Extension Functions

launch

launches a coroutine on the DrawThread

fun DrawThread.launch(context: CoroutineContext = this.dispatcher, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> Unit): Job