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

take into account ctx.Done() when running timers #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

titivermeesch
Copy link

When running timers I noticed that when the context gets disposed, the timers are not cancelled, causing nil pointer issues because the timer tries to execute inside a context that does not exist anymore.

This makes sure that the timers get cancelled when the context is marked as done.

Breaking changes

This PR changes the signature of the timers InjectTo function, which breaks current implementations of this function.

More information

I looking into using the v8go context, but this does not provide the correct information we need to get this to work

@titivermeesch
Copy link
Author

@kuoruan FYI

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

Successfully merging this pull request may close these issues.

1 participant