asCoroutineDispatcher

fun Window.asCoroutineDispatcher(): CoroutineDispatcher (source)

Platform and version requirements: JS

Converts an instance of Window to an implementation of CoroutineDispatcher.