I have a piece of code like this:
let result =
promise.try_await(some_async_fn(), fn(data) {
io.println("this is never printed")
promise.resolve(Ok(Nil))
})
io.println(string.inspect(result)) // this prints js(Promise {})
how do I debug this println not getting called?
I don't see any way to check the promise state either