Skip to content

Fix #27 - inaccurate timeout delay.#28

Merged
mbostock merged 1 commit into
masterfrom
fix-timeout-delay
Sep 3, 2017
Merged

Fix #27 - inaccurate timeout delay.#28
mbostock merged 1 commit into
masterfrom
fix-timeout-delay

Conversation

@mbostock

@mbostock mbostock commented Aug 4, 2017

Copy link
Copy Markdown
Member

If timers are expensive, then by the time we sleep, the current time may have advanced substantially from the clockNow computed on wake. Therefore we must recompute the current time before scheduling the timeout.

If timers are expensive, then by the time we sleep, the current time may have
advanced substantially from the `clockNow` computed on wake. Therefore we must
recompute the current time before scheduling the timeout.
@magjac

magjac commented Aug 9, 2017

Copy link
Copy Markdown

Thanks for fixing this so quickly! Now it works as expected 😄.

Will you be making a release of it any time soon? I just published the d3-graphviz plugin. The demos contain workarounds for this issue that I would like to remove.

If you're interested, the demos are here:

@magjac

magjac commented Sep 3, 2017

Copy link
Copy Markdown

Is there any particular reason this didn't make it into d3/d3 v4.10.1? Anything I can do to help?

@mbostock

mbostock commented Sep 3, 2017

Copy link
Copy Markdown
Member Author

No particular reason—I just forgot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants