Package io. github. oshai. coroutines
Functions
Link copied to clipboard
inline suspend fun <T> withLoggingContextAsync( vararg pair: Pair<String, String?>, restorePrevious: Boolean = true, crossinline body: suspend () -> T): T
Content copied to clipboard
Use a varying number of pairs in an asynchronous MDC context. Example:
inline suspend fun <T> withLoggingContextAsync( pair: Pair<String, String?>, restorePrevious: Boolean = true, crossinline body: suspend () -> T): T
Content copied to clipboard
Use a pair in an asynchronous MDC context. Example:
inline suspend fun <T> withLoggingContextAsync( map: Map<String, String?>, restorePrevious: Boolean = true, crossinline body: suspend () -> T): T
Content copied to clipboard
Use a map in an asynchronous MDC context. Example: