onMain

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