Remove import when using Kotlin's @Deprecated "ReplaceWith" functionality
I have a custom function MutableStateFlow.update(), which i want to deprecate in favor of the official "kotlinx.coroutines.flow.update" version.
@Deprecated(
message = "This is not thread safe. Use the official version from kotlinx.coroutines.flow.update",
ReplaceWith("update(transformation)", "kotlinx.coroutines.flow.update"),
DeprecationLevel.ERROR
)
public inline fun MutableStateFlow.update(transformation: (previousValue: T) -> T) {
value = transformation(value)
}
This...