generateTimely

fun <T> generateTimely(generator: () -> T): T(source)

Runs the generator and returns its return value, or throws an exception if it takes longer than GENERATOR_TIMEOUT milliseconds.

Throws

if the generator timed out or if data could not be generated