effection icon indicating copy to clipboard operation
effection copied to clipboard

Task execution is last in first out within a priority group.

Open cowboyd opened this issue 6 months ago • 1 comments

The following code:

await main(function*() {
  yield* spawn(function*() {
    console.log("one");
  });

  yield* spawn(function*() {
    console.log("two");
  });

  yield* sleep(0);
});

prints:

two
one

But it should be:

one
two

cowboyd avatar Apr 25 '25 20:04 cowboyd