bytecodealliance / bytecodealliance/wasmtime-go

Epochs don't interrupt binaries with long time.Sleep durations

Open
#233 3 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.