nanolith
nanolith copied to clipboard
Service Initialization Arguments
When initializing a service, it would maybe be nice to be able to provide initialization arguments like this:
api.launchService({ args: { foo: 'bar' } });
Then, these arguments could be available within the worker with a global Map
maybe called ServiceArgs
:
console.log(ServiceArgs.has('foo'));