Skip to content

Commit c025ccc

Browse files
Update commons-provider
1 parent 6c22ace commit c025ccc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

invui-kotlin/src/main/kotlin/xyz/xenondevs/invui/dsl/property/ProviderDslProperty.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ private class NonMutableMutableProvider<T>(override val identifier: Provider<T>)
4141
override fun <R> map(transform: (T) -> R, untransform: (R) -> T) = throwUoe()
4242
override fun <R> mapObserved(createObservable: (T, () -> Unit) -> R) = throwUoe()
4343
override fun <R> strongMapObserved(createObservable: (T, () -> Unit) -> R) = throwUoe()
44+
override fun consume(source: Provider<T>) = throwUoe()
4445
override fun update(value: DeferredValue<T>, ignore: Set<Provider<*>>) = throwUoe()
4546
private fun throwUoe(): Nothing =
4647
throw UnsupportedOperationException("This property was changed to a non-mutable provider")

0 commit comments

Comments
 (0)