bytecodealliance / bytecodealliance/wasmtime-go
Epochs don't interrupt binaries with long time.Sleep durations
Open
- Dominant language
- Go
- Stars
- 913
- Forks
- 100
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
Hi!
I'm trying to execute the following go snippet compiled to WASM:
```
package main
import time
func main() {
time.Sleep(10 * time.Second)
}
```
and am using an epoch deadline (set to "3"), which is being incremented every 100 milliseconds. In other words, the deadline for this is 300 milliseconds.
However, this isn't behaving as I expect using wasmtime-go: with the wasm trap only firing after the time.Sleep call has completed.
Is this expected behaviour?
Thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.