[Bug 19580] New: Callbacks need to be called asynchronously


          Priority: P2
            Bug ID: 19580
                CC: public-webrtc@w3.org
          Assignee: public-webrtc@w3.org
           Summary: Callbacks need to be called asynchronously
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: ekr@rtfm.com
          Hardware: PC
            Status: NEW
           Version: unspecified
         Component: WebRTC API
           Product: WebRTC Working Group

Consider the following code:

pc.createOffer(function(x) {

I believe this should print out: 1 3 2

I.e., all API calls which take a callback should return prior to firing the
callback. The spec isn't really clear on this point for all of these calls,
IMO, so if people agree we should update it to be clear ("queue a task...")

You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Received on Wednesday, 17 October 2012 16:38:33 UTC