viewModelScope

inline fun <T : Any> viewModelScope(qualifier: Qualifier = TypeQualifier(T::class)): ViewModelScopeToken

Specifies a ViewModelScope as the next step in the path.

Return

A ViewModelScopeToken to continue the path-building chain.

Parameters

T

The ViewModel class associated with the scope.

qualifier

An optional, explicit Qualifier for the ViewModel scope.