Closed betula closed 3 years ago
const a = pool(async () => {
if (a.count.val > 1) return a.threads[0].promise; // Return promise from first thread
}
assert(a.flat.pending === false);
assert(chan(async () => {}).flat.pending === false);
Added to "the stream of conciseness 0.7+ roadmap"