npmccallum opened PR #3913 from wasi
to main
:
Currently, the use of the downcast method means that you have to use one
of the hard-coded types. But Enarx needs to define its ownWasiFile
implementations. This works fine, except the resulting files cannot be
used in poll because they aren't part of the hard-coded list.Replace this with an accessor method for the pollable type in
WasiFile
. Because we provide a default implementation of the method
and manually implement it on all the hard-coded types, this is backwards
compatible.Signed-off-by: Nathaniel McCallum <nathaniel@profian.com>
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
npmccallum updated PR #3913 from wasi
to main
.
npmccallum updated PR #3913 from wasi
to main
.
npmccallum updated PR #3913 from wasi
to main
.
npmccallum updated PR #3913 from wasi
to main
.
npmccallum updated PR #3913 from wasi
to main
.
pchickey submitted PR review.
pchickey merged PR #3913.
Last updated: Nov 22 2024 at 16:03 UTC