Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 370 Bytes

Provider.md

File metadata and controls

12 lines (9 loc) · 370 Bytes
class MainViewModel(
    private val repo: Repository
): ViewModel() {
    
    val dataProvider by provider(repo::method)
    
}

Providers util has build in trial function if errors happen, you can set error trial count to set maximum trial before it give up. See Provider Util