onMain

open fun <T : Any> T.onMain(function: T.() -> Unit): CSRegistration?

onMain uses later(5) due to one strange rare multithreading issue where later function where executed earlier then later returned registration