Parcourir la source

提高函数废弃等级

drake il y a 3 ans
Parent
commit
76fd694c8b
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      net/src/main/java/com/drake/net/utils/FlowUtils.kt

+ 2 - 2
net/src/main/java/com/drake/net/utils/FlowUtils.kt

@@ -32,7 +32,7 @@ import kotlinx.coroutines.flow.debounce
 /**
  * 收集Flow结果并过滤重复结果
  */
-@Deprecated("规范命名", ReplaceWith("launchIn"), DeprecationLevel.WARNING)
+@Deprecated("规范命名", ReplaceWith("launchIn(owner,event,dispatcher,action)"), DeprecationLevel.ERROR)
 @OptIn(InternalCoroutinesApi::class)
 inline fun <T> Flow<T>.listen(
     owner: LifecycleOwner? = null,
@@ -51,7 +51,7 @@ inline fun <T> Flow<T>.listen(
  * @param event 销毁时机
  * @param dispatcher 指定调度器
  */
-@Deprecated("规范命名", ReplaceWith("launchIn"), DeprecationLevel.WARNING)
+@Deprecated("规范命名", ReplaceWith("launchIn(owner,event,dispatcher,action)"), DeprecationLevel.ERROR)
 @OptIn(InternalCoroutinesApi::class)
 inline fun <T> Flow<T>.scope(
     owner: LifecycleOwner? = null,