Skip to content

Easy timeout/setInterval #131

Closed
Closed
@theduke

Description

@theduke

It would be great to have a easy way to schedule timeouts and intervals.

Something like:

orders.interval(1000, Msg::Tick);
orders.timeout(500, Msg::Delayed);

As mentioned in the futures cancellation issue, it would be great to return a drop guard that clears the timeout/interval when dropped.

For inspiration, draco does it this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API designProposal for a new or updated Seed API.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions