UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

56 lines (27 loc) 768 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [IWorkerPool](./rc-js-util.iworkerpool.md) &gt; [addJob](./rc-js-util.iworkerpool.addjob.md) ## IWorkerPool.addJob() method Transfer unique ownership of the job to the pool. If the pool is running, the job should eventually be run. **Signature:** ```typescript addJob(jobPtr: number): boolean; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> jobPtr </td><td> number </td><td> </td></tr> </tbody></table> **Returns:** boolean ## Remarks The job is deleted on completion.