alexcrichton opened PR #7118 from alexcrichton:typed-table
to bytecodealliance:main
:
With the usage of resources and some small additions to the
Table
type we can get all the benefit of type-safety here without the boilerplates of traits, yayResource<T>
starting to pay for itself!I've done light refactorings here while I was at it:
- Much of preview2-to-preview1 needed restructuring as I opted to use
Resource<T>
rather than the prioru32
.- Blocking functions on streams now check
ready()
and then call the non-blocking version. (avoids duplication)- All
pollable
resources are now tracked automatically as children of the resource from whence they came, causing a dynamic error if the original item is destroyed before thepollable
alexcrichton requested fitzgen for a review on PR #7118.
alexcrichton requested wasmtime-core-reviewers for a review on PR #7118.
alexcrichton updated PR #7118.
alexcrichton updated PR #7118.
pchickey submitted PR review:
:rocket: type safety :rocket:
elliottt submitted PR review:
:fire:
pchickey merged PR #7118.
Last updated: Dec 23 2024 at 12:05 UTC