Recent submissions

Comment · 1 month ago
As an aside: isn't there something liberating about small primitives like Observable or Signal or a Promise? You're buying into an idea, not an implementation.
Comment · 10 months ago
Author here. What's pretty cool about LazyPromise is that when it's paired with Signals, you can do some of the stuff that you'd otherwise do with functional reactive programming, but you don't have to tell your team to learn RxJS or another FRP library - instead there is an API that capitalizes on the existing knowledge of the native promise.
Comment · 10 months ago
Author here. Good questions.

About the two error channels: what I tried to do is to make it really easy to not use typed errors when you don't need them. In that case your promise is typed as `LazyPromise<Value, never>`.

Signals is a reactive primitive that has been initially introduced in SolidJS framework and have then made their way to other frameworks like Angular.

Comment · 10 months ago
Yeah, I think this will cover the basic use-case, although the way I'd approach this is by starting with AbortSignal API and then maybe creating a wrapper around it. In a way `eager` and `lazy` functions from LazyPromise library are such wrappers.
Comment · 10 months ago
Yes, do take a look, I've just added a `log` function that makes it easy to play around with lazy promises and see everything that's going on.
Comment · 5 years ago
I created a library that lets you log much more information about an RxJS observable than just next/errors/completions. And it's not only about logging to the console: you can inspect log messages in unit tests. Looking forward to your feedback!
Comment · 9 years ago
Hey a quick question — which Flow extension are you using? There's the official one called "Flow Language Support" and another one called vscode-flow-ide.

UPD: sorry, I just realized you were talking about Reason, never mind.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton