nanolith icon indicating copy to clipboard operation
nanolith copied to clipboard

Service Initialization Arguments

Open mstephen19 opened this issue 1 year ago • 0 comments

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'));

mstephen19 avatar May 18 '23 00:05 mstephen19