Skip to content

Change set_timeout_with_handle() and set_interval_with_handle() to not panic #4226

@benwis

Description

@benwis

We should change set_timeout_with_handle() and set_interval_with_handle() to not take a Duration because technically for wasm targets we can't take anything larger than i32::MAX and Duration takes values up to a u128. This will prevent panics if Duration::as_millis() > i32::MAX.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions