Show HN: LazyPromise = Observable – Signals

(github.com)

22 points | by ivan7237d 6 days ago ago

3 comments

  • conartist6 2 hours ago

    Interesting, interesting. It would take me a few hours of playing with this mechanism to know what I think of it as a primitive, but for me this solution is relevant to a problem I really have so I might take a look. Right now I just write methods that sometimes return a promise and sometimes don't.

  • lgas 38 minutes ago

    Do you want monads? Because this is how you get monads.

  • MuffinFlavored 2 hours ago

    > except you can optionally return a teardown function, for example:

    Kind of reminds me of https://doc.rust-lang.org/rust-by-example/trait/drop.html