effection
effection copied to clipboard
Task execution is last in first out within a priority group.
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