Debugging `useDatabase` Utility with `Effect.tryPromise`
I've written a small utility that lets me use a service in a callback, and it doesn't work for some reason:
If I use this nothing happens, but if I do this:
it works. What am I doing wrong? Can I use
If I use this nothing happens, but if I do this:
it works. What am I doing wrong? Can I use
tryPromise within a gen? Did I miss something?