Redth / Maui.VirtualListView

A slim ListView implementation for .NET MAUI that uses Platform virtualized lists / collections
MIT License
240 stars 32 forks source link

Is there any way to implement async adapter? #18

Closed Antoniy2000 closed 9 months ago

Antoniy2000 commented 11 months ago

I want to use async functions to receive data from api/db

Redth commented 10 months ago

I don't imagine you'd want the adapter to be calling out to an API for the methods you're implementing - this would be rather slow. Instead you should probably maintain a cache in your adapter which fills up the cache from the API in a separate task/thread so the adapter can quickly return items synchronously.

Redth commented 9 months ago

In any case, this is not something I'm planning on. I believe you should be implementing async methods on your own adapter implementation to load and cache things when and as appropriate so that the adapter methods return quickly.