All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.api.Raptor.kt Maven / Gradle / Ivy

The newest version!
package io.fluidsonic.raptor.transactions

import io.fluidsonic.raptor.*
import kotlin.contracts.*


public fun Raptor.transaction(): RaptorTransaction =
	context.transaction()


@RaptorDsl
public suspend inline fun  Raptor.transaction(block: RaptorTransactionScope.() -> Result): Result {
	contract {
		callsInPlace(block, InvocationKind.EXACTLY_ONCE)
	}

	return context.transaction(block)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy