Skip to content

Timer regression v44 => v45 for zero-delay timers? #13507

@ignatz

Description

@ignatz

Test Case

Sorry for not offering a trivial repro, my setup is a bit more convoluted :hide:

I'm using wstd to write async WASM code, which hasn't changed lately (neither my code nor wstd). However upgrading to v45, my async rust code that used to work:

Timer::after(Duration::from_nanos(0)).wait().await;

now hangs. The continuation never runs. Just waiting for 1 nanosecond instead of 0 fixes the issue.

I suspect this is a regression in wasmtime itself.

Steps to Reproduce

yield for a 0-delay

Expected Results

continuation runs right away or after completing some other tasks firs..., as long as it runs eventually

Actual Results

crickets

Versions and Environment

v45

Operating system:

lunix

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior in the current implementation that needs fixing

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions