wait for async javascript function to return

Posted by Nippysaurus on Stack Overflow See other posts from Stack Overflow or by Nippysaurus
Published on 2010-06-16T06:53:26Z Indexed on 2010/06/16 7:02 UTC
Read the original article Hit count: 259

I am using a function supplied by a third party library. This function takes a callback function as a parameter, but I would like to wait for this callback to be called before continuing. Is there a standard / accepted way to do this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about asynchronous