Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay() function #3

Open
Seeloewen opened this issue Sep 20, 2023 · 0 comments
Open

Delay() function #3

Seeloewen opened this issue Sep 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request small tool A small tool that doesn't require much work
Milestone

Comments

@Seeloewen
Copy link
Owner

Seeloewen commented Sep 20, 2023

This function will allow you to schedule a function to run after a certain amount of seconds. It will do this by creating a timer and setting the timer tick rate to the given seconds. The function you've scheduled will then be run once.

The function will most likely look somewhat like this:

public void Delay (int seconds, action function)
{
     Timer tmr = new Timer();
     tmr.Interval = seconds;
     tmr.Tick+- ...
     //And so on...
}

Not sure how I'll work with the timer there, we'll see.

@Seeloewen Seeloewen self-assigned this Sep 20, 2023
@Seeloewen Seeloewen added the enhancement New feature or request label Sep 20, 2023
@Seeloewen Seeloewen added the small tool A small tool that doesn't require much work label Apr 3, 2024
@Seeloewen Seeloewen added this to the Version 1.1.1 milestone Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request small tool A small tool that doesn't require much work
Projects
Development

No branches or pull requests

1 participant