Skip to content

[feature request] Timers should be usable in Node.js environment #176

@teohhanhui

Description

@teohhanhui

Describe the Bug

Trying to use timers while running in Node.js environment currently panics with: https://github.com/rustwasm/gloo/blob/2245cd9fde70ae35e3eebfa54e431077cffac2ea/crates/timers/src/callback.rs#L37

Steps to Reproduce

N/A

Expected Behavior

Timers work in Node.js environment.

Actual Behavior

Panic with error message: Only supported in a browser or web worker

Additional Context

Similar to #106

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions