createCleanupCallback

fun createCleanupCallback(block: suspend CoroutineScope.() -> Unit): () -> Cleanup(source)
fun <T> createCleanupCallback(block: suspend CoroutineScope.(T) -> Unit): (T) -> Cleanup(source)