nanolith
nanolith copied to clipboard
Multithreading in Node.js made simple with seamless TypeScript support.
Hi, I was wondering if you could answer a question for me regarding launchService / worker threads behaviour. If i keep my service 'running' and dont call the close method...
Currently, the type definition for `TaskFunction` looks like this: ```ts type TaskFunction = (...args: any[]) => Awaitable; ``` Though this works, it is problematic because only certain basic data types...
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @OlafConijn in...
Currently, the following code is in the runner for services: ```TypeScript // ! temp - enable catching errors in the __initializeService // ! hook. This is only temporary because the...
We've got commented out a type named `Acceptable`, which encompasses all values that can be send via `parentPort.postMessage` and `worker.postMessage` without hitting a runtime error. Instead of `any`, this type...
This is the PR for the `v0.4.7` branch where all latest code changes to appear in the next version should be based off of.
When initializing a service, it would maybe be nice to be able to provide initialization arguments like this: ```TypeScript api.launchService({ args: { foo: 'bar' } }); ``` Then, these arguments...
There are some typos, misspellings, and strange sentences in the docs. Mostly the result of writing them while sleepy. These should be patched up.
There should be a docs website that is easier to navigate than the ever-growing README file.