RangerMauve / webrun

Run Web-first ESM modules outside of the browser
https://webrun-presentation.hashbase.io/
MIT License
77 stars 8 forks source link

spawning subprocess when running webrun(...) #9

Closed allain closed 5 years ago

allain commented 5 years ago

So, running webrun({url}) twice will now have it run those two invocations in separate sub-processes.

webrun({url}) returns a promise which will resolve when the subprocess exists (by calling self.close())

I have not, but could expose webrun.run({url}) that would run in the process doing the method call without spawning.

allain commented 5 years ago

https://github.com/RangerMauve/webrun/pull/9/commits/cb7981ebee035f25a5b41e46dbe0e6a1361d35d7#diff-b9cfc7f2cdf78a7f4b91a753d10865a2L11 appears to already do so, so I'm not sure what you're requesting.

RangerMauve commented 5 years ago

My bad! I missed that!

RangerMauve commented 5 years ago

LGTM!