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

Added msg_throttle sync=True widget traitlet #5170

Merged
merged 2 commits into from Feb 21, 2014

Conversation

jdfreder
Copy link
Member

closes #5127

@@ -110,7 +109,7 @@ function(WidgetManager, _, Backbone){
// Send buffer if this message caused another message to be
// throttled.
if (this.msg_buffer !== null &&
this.msg_throttle === this.pending_msgs) {
this.get('msg_throttle') || 3 === this.pending_msgs) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, I'm surprised this doesn't need parentheses, with the && and || right next to each other.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not see that other && since the statement was split between the two lines 😛

minrk added a commit that referenced this pull request Feb 21, 2014
Added msg_throttle sync=True widget traitlet
@minrk minrk merged commit f6ccfaf into ipython:master Feb 21, 2014
@jdfreder jdfreder deleted the widget-throttle-trait branch March 10, 2014 18:44
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Added msg_throttle sync=True widget traitlet
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.

Widgets: skip intermediate callbacks during throttling
3 participants