calculate

abstract suspend fun calculate(module: Module<T, V>, inputValue: I, executionContext: ExecutionContext, reportProgress: suspend (current: Int, total: Int, message: String?) -> Unit): O(source)

Implement this in your models. Call reportProgress whenever you want to emit a progress update.