Whatever message this page gives is out now! Go check it out!

loadAsync

Last update:
May 18, 2026
Asynchronously loads documents from the file system or a URL. Returns a ColdFusion Future that resolves to the same Array of document Structs as load(), allowing the application to continue executing while loading occurs in the background.

Syntax

docService.loadAsync(config)

Parameters

The config argument accepts the same keys as load(). See the load() reference for the full parameter list.

Returns

Returns a Future. Calling .get() blocks until loading completes and returns an Array of document Structs identical to the return value of load().

Example

future = docService.loadAsync({ path: "./large-corpus/", recursive: true });

// … do other work …

docs = future.get();

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page