From 566fb6c498d571281c94029f8dfbac5e5077600c Mon Sep 17 00:00:00 2001 From: isXander Date: Wed, 12 Jun 2024 17:15:09 +0100 Subject: Changelog and minor changes --- src/main/kotlin/dev/isxander/yacl3/dsl/API.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/kotlin') diff --git a/src/main/kotlin/dev/isxander/yacl3/dsl/API.kt b/src/main/kotlin/dev/isxander/yacl3/dsl/API.kt index cd2c483..e3e3099 100644 --- a/src/main/kotlin/dev/isxander/yacl3/dsl/API.kt +++ b/src/main/kotlin/dev/isxander/yacl3/dsl/API.kt @@ -23,6 +23,9 @@ typealias FutureOption = CompletableFuture> fun CompletableFuture.futureRef(id: String): FutureOption = thenCompose { it.futureRef(id) } +fun CompletableFuture.futureRef(): RegisterableDelegateProvider> = + RegisterableDelegateProvider({ this.futureRef(it) }, null) + fun YetAnotherConfigLib(id: String, block: RootDsl.() -> Unit) = RootDslImpl(id).apply(block).build() -- cgit