Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple concurrent threads under thread count #656

wants to merge 1 commit into
base: dev


Copy link

benbernard commented Oct 22, 2019

As discussed (briefly) on discord...

Here is an example script that works with the new code (must run with at least 2 threads):

export async function main(ns) {
  let p1 = ns.grow("foodnstuff", {threads: 1});
  let p2 = ns.hack("foodnstuff", {threads: 1});

  await p1;
  await p2;


Let me know if there is more that you want me to do, happy to do more :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.