How do I define asynchronous API endpoints in
When I try to reproduce the example, I get an error that R doesn't know how to turn a
JSON (at least that's what I think the problem is):
<simpleError: No method asJSON S3 class: promise>
What am I doing wrong? Is there any official doc on this?
Referred here by