commonMain.com.zegreatrob.testmints.action.async.SimpleSuspendAction.kt Maven / Gradle / Ivy
package com.zegreatrob.testmints.action.async
interface SimpleSuspendAction : SuspendAction {
override suspend fun execute(dispatcher: T) = performFunc(dispatcher)
val performFunc: suspend (T) -> R
fun A.link(performFunc: suspend (T, A) -> R): suspend (T) -> R = { performFunc(it, this) }
}