Skip to content

BlockCache.getForFile method

BlockCache › getForFile

Unofficial

Gets the block cache for a file, reading and caching it if needed.

Signature:

getForFile(cancelContext: unknown, file: TFile): Promise<unknown>

Parameters:

Parameter Type Description
cancelContext unknown A cancellation context exposing isCancelled().
file TFile The file whose block cache to get.

Returns: Promise<unknown>A promise resolving to the file's block cache, or null.