Repository navigation
Releases
Releases · async-digital-ltd/look-ahead
1.0.0
The first public release of LookAhead, a Swift package that keeps the resources around the current position in an ordered list loaded and ready.
Prefetcherloads a window around the focused position, nearest first, and lets go of what leaves it.- One load per key, shared by every caller that asks while it is in progress.
- An optional main-actor
preparestep for values that need not beSendable, such as an audio player. - iOS, macOS, tvOS, visionOS and watchOS 26. No dependencies. MIT licence.
Y fersiwn gyhoeddus gyntaf o LookAhead, pecyn Swift sy'n cadw'r adnoddau o gwmpas y safle presennol mewn rhestr drefnedig wedi'u llwytho ac yn barod.
- Mae
Prefetcheryn llwytho ffenestr o gwmpas y safle dan ffocws, yr agosaf yn gyntaf, ac yn gollwng yr hyn sy'n ei gadael. - Un llwythiad i bob allwedd, wedi'i rannu gan bob galwr sy'n gofyn tra bo'n mynd rhagddo.
- Cam
preparedewisol ar y prif actor ar gyfer gwerthoedd nad oes rhaid iddynt fod ynSendable, fel chwaraewr sain. - iOS, macOS, tvOS, visionOS a watchOS 26. Dim dibyniaethau. Trwydded MIT.