We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
configBlock
1 parent fcb490d commit c2d165eCopy full SHA for c2d165e
aws-crt-kotlin/native/src/aws/sdk/kotlin/crt/WithCrt.kt
@@ -7,8 +7,10 @@ package aws.sdk.kotlin.crt
7
/**
8
* A mixin class used to ensure CRT is initialized before the class is invoked
9
*/
10
-public open class WithCrt {
+public open class WithCrt(configBlock: Config.() -> Unit = {}) {
11
init {
12
- CRT.initRuntime { }
+ CRT.initRuntime {
13
+ configBlock()
14
+ }
15
}
16
0 commit comments