elm.web.file_loader.BaseAsyncFileLoader
- class BaseAsyncFileLoader(file_cache_coroutine=None, **__)[source]
Bases:
ABCBase class for async file loading
- Parameters:
file_cache_coroutine (callable, optional) – File caching coroutine. Can be used to cache files downloaded by this class. Must accept an
Documentinstance as the first argument and the file content to be written as the second argument. If this method is not provided, no document caching is performed. By default,None.
Methods
fetch(source)Fetch a document for the given source.
fetch_all(*sources)Fetch documents for all requested sources.