Closed doseofted closed 8 months ago
Latest commit: c7716bdc3e79e66890ec533ac4abb5b1c868560d
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
prim-rpc | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Feb 23, 2024 5:24pm |
When returning a result from a function, today it's generally expected in Prim+RPC that all promises contained in the result have already been resolved and those promise wrappers have been removed.
However, when working with multiple promises, it may be more beneficial to the client to return quickly with multiple unresolved promises and simply resolve each promise individually (for instance when rendering data to a UI where data should be displayed as soon as it becomes available).
This PR adds Promises as a new "serializable" type, like blobs or callbacks. It will behave very similarly to callbacks.