AsyncCompiler

The result of creating an asynchronous compiler. Returned byinitAsyncCompiler.

Hierarchy

  • AsyncCompiler

Constructors

Privateconstructor

Methods

compileAsync

compileStringAsync

dispose

  • dispose():Promise<void>
  • Ends the lifespan of this Async Compiler instance. After this is invoked,all subsequent calls to the Compiler instance'scompileAsync orcompileStringAsync methods will result in an error.

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

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

    ReturnsPromise<void>