News for hackers. Stuff that matters.
Re:State of Loom by toast0 on Saturday May 16, 2020 @09:38PM (#23208726)
I would imagine doA() should do@ and return the result, but startA() would start it.

If you just need to wait for both to finish, something like this should do it:

   var t1 = startA();
   var t2 = startB();
   var a = finishA(t1);
   var b = finishB(t2);
finishX would naturally block until X is done.

There are no comments on this comment yet.