Skip to content

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

Description

@cedric-cordenier

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions