ViewCoroutineScope

class ViewCoroutineScope(view: View, dispatcher: CoroutineDispatcher) : NetCoroutineScope

视图作用域 会在视图销毁时自动取消作用域

Constructors

ViewCoroutineScope
Link copied to clipboard
fun ViewCoroutineScope(view: View, dispatcher: CoroutineDispatcher = Dispatchers.Main)

Properties

view
Link copied to clipboard
val view: View