Documentation ¶
Overview ¶
Workflow workflows searches GitHub repos tagged with "alfred-workflow".
It demonstrates the use of the caching and background-process APIs to provide a responsive workflow by updating the datastore in the background.
It shows results based on cached data (if available), and if the cached data are out-of-date, starts a background process to refresh the cache.
The Script Filter reloads the results (by setting Workflow.Rerun) until the cached data have been updated (at which point it's showing the latest data).
This is a very useful idiom for workflows that don't need data that are absolutely bang up-to-date. The user still gets (potentially out-of-date) results, preserving the responsiveness of the workflow, and the latest data are shown as soon as they're available.