aantron / promise

Light and type-safe binding to JS promises
MIT License
341 stars 24 forks source link

Native Example #75

Open idkjs opened 3 years ago

idkjs commented 3 years ago

Is there an example of this library being used in native?

Thanks

aantron commented 3 years ago

If you mean a real example, I believe there is not.

idkjs commented 3 years ago

How about a toy? Its time we infect the ocaml side of things with some js, no?

aantron commented 3 years ago

There is an absolutely trivial example here: https://github.com/aantron/promise-example-esy.

To get this used on the native side, we'd need to make it run with Lwt, probably. There is a version of that here: https://github.com/aantron/repromise_lwt.

idkjs commented 3 years ago

Need a Dream example using Js and Native promise.