W3cubDocs

/Sass

AsyncCompiler

The result of creating an asynchronous compiler. Returned by initAsyncCompiler.

Hierarchy

  • AsyncCompiler

Constructors

Methods

  • Ends the lifespan of this Async Compiler instance. After this is invoked, all subsequent calls to the Compiler instance's compileAsync or compileStringAsync methods will result in an error.

    Any compilations that are submitted before dispose will not be cancelled, and will be allowed to settle.

    After all compilations have been settled and Sass completes any internal task cleanup, dispose will resolve its promise.

    Returns Promise<void>

© 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/classes/AsyncCompiler