Skip to content

Handle exceptions inside of timer callbacks? #4

Closed

Description

@mbostock

Related d3/d3#2416.

Activity

  1. mbostock commented on Oct 21, 2015

    @mbostock
    MemberAuthor

    Related d3/d3#2415.

  2. mbostock commented on Oct 22, 2015

    @mbostock
    MemberAuthor

    Something like this, maybe?

    function wake() {
      frame = timeout = 0, timeoutTime = Infinity;
      try {
        wakeAt(timerFlush());
      } catch (error) {
        active = null;
        wakeAt(Date.now() + 17); // ???
        throw error;
      }
    }
  3. added a commit that references this issue on Nov 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions