inCoroutineContext

@Alpha
fun Jdbi.inCoroutineContext(handle: Handle? = null): CoroutineContext.Element

Returns a CoroutineContext.Element instance representing this Jdbi object which can be used to manage handles from this Jdbi in a coroutine context.

Return

A CoroutineContext.Element object. No attempt should be made to inspect or use this object directly. Coroutines that share a context which contains this element will share any derived object such as org.jdbi.v3.core.Handle or extension objects.

Since

3.42.0