joeycumines/ts-chan
View on GitHub ↗ ★ 110 TypeScript
Concurrency primitives for TypeScript and JavaScript.
7 mentions on Hacker News by 2 people: 2 stories, 5 comments · first 2023-11-05 · latest 2023-11-08
20082026
-
…but I've added an example of how "vanilla JS" can achieve fan-in, using an AsyncGenerator: https://github.com/joeycumines/ts-chan/blob/main/docs/patter... It uses one of the patterns suggested in a comment chain above, which I think is…
comment by joeycumines · 2023-11-08 · in Show HN: Ts-Chan – Go-Like Concurrency Primitives for TypeScript/JavaScript -
…(TCP) log streams, formatting and writing out lines to a file. Details in the example readme: https://github.com/joeycumines/ts-chan/blob/main/examples/pa... I'd appreciate it if you could let me know what you think, and if this is a step…
comment by joeycumines · 2023-11-07 · in Ask HN: Fan-in pattern in JavaScript, ts-chan docs, feedback requested -
…queue", an optimisation I believe was created to power async/await. Details / links to MDN here: https://github.com/joeycumines/ts-chan#the-microtask-queue-a...
comment by joeycumines · 2023-11-06 · in Show HN: Ts-Chan – Go-Like Concurrency Primitives for TypeScript/JavaScript -
…that seems promising for practical use, plus well-referenced, composed, and quite thorough. [1] https://github.com/joeycumines/ts-chan#the-microtask-queue-a...
comment by artisin · 2023-11-06 · in Show HN: Ts-Chan – Go-Like Concurrency Primitives for TypeScript/JavaScript -
…chains of operations. Here is an example, that I based on an example from within the Go spec: https://github.com/joeycumines/ts-chan/blob/main/examples/co... Here is the same example in Go: https://github.com/joeycumines/ts-chan/blob/main/e…
comment by joeycumines · 2023-11-06 · in Show HN: Ts-Chan – Go-Like Concurrency Primitives for TypeScript/JavaScript