Skip to content

Timeout/Delay Support #167

Description

@Funtime60

Since Event.Event allows multiple handlers for the same event, it'd be nice if there was built-in support for waiting m-ticks by taking the current tick and adding m then registering a wrapper function with on_nth_tick that will unregister itself when done. This would allow for functionality similar to SetTimout in JavaScript since we already have something similar to SetInterval.

I will admit, I haven't found a specific use case for this ability, but that's likely a case of chicken and egg.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions