dispatchrun / wasi-go

A Go implementation of the WebAssembly System Interface (WASI)
Apache License 2.0
124 stars 7 forks source link

allow shutdown of unix provider #7

Closed achille-roussel closed 1 year ago

achille-roussel commented 1 year ago

This PR modifies the unix provider to support asynchronously shutting it down, even if the guest is blocked in a poll_oneoff call waiting for I/O completion.

As part of this PR also completed the implementation of clock subscriptions in poll_oneoff (for monotonic clocks only).