wasi:io/poll.poll
wit definition contains this part:
This function does not return a
result
; polling in itself does not
do any I/O so it doesn't fail.
but there is at least one invariant:
The result
list<u32>
contains one or more indices of handles in the
argument list that is ready for I/O.
How should we handle the case where the pollable list argument is empty?
wasmtime_wasi
returns an error.
Wasmtime traps. There is a open PR to codify this in the spec:
https://github.com/WebAssembly/wasi-io/pull/69
Dave Bakker (badeend) said:
Wasmtime traps. There is a open PR to codify this in the spec:
https://github.com/WebAssembly/wasi-io/pull/69
Thanks. I will also go with trapping for now.
Last updated: Nov 22 2024 at 16:03 UTC