Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 596 Bytes

webworker.md

File metadata and controls

16 lines (14 loc) · 596 Bytes

@angular-ru/cdk/webworker

  • WebWorkerThreadService - Web workers allow you to run CPU-intensive computations in a background thread, freeing the main thread to update the user interface. If you find your application performs a lot of computations, such as generating CAD drawings or doing heavy geometrical calculations, using web workers can help increase your application's performance.
@Component({
    // ...
    providers: [WebWorkerThreadService]
})
export class MyComponent {
    constructor(private readonly worker: WebWorkerThreadService) {}
}