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

No way to add data to a timer in StreamSelectLoop #58

Closed
geggleto opened this issue Nov 2, 2016 · 1 comment
Closed

No way to add data to a timer in StreamSelectLoop #58

geggleto opened this issue Nov 2, 2016 · 1 comment

Comments

@geggleto
Copy link

geggleto commented Nov 2, 2016

LoopInterface.php

    public function addTimer($interval, $callback);
    public function addPeriodicTimer($interval, $callback);

StreamSelectLoop.php

    public function addTimer($interval, $callback);
    public function addPeriodicTimer($interval, $callback);

I need to add a timer with associated data to my loop. I can create my own Timer object, but I have no way to inject it into the list maintained in StreamSelectLoop

I can PR something, just not sure how you want to approach it.

@geggleto
Copy link
Author

geggleto commented Nov 2, 2016

Ah, after having some coffee the add*s return the timer object.

@geggleto geggleto closed this as completed Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant