Pass correct “this” context to setTimeout callback?
How do I pass context into setTimeout? I want to call this.tip.destroy() if this.options.destroyOnHide after 1000 ms. How can I do that? if … Read more
How do I pass context into setTimeout? I want to call this.tip.destroy() if this.options.destroyOnHide after 1000 ms. How can I do that? if … Read more
I have a simplified function that looks like this: function(query) { myApi.exec(‘SomeCommand’, function(response) { return response; }); } Basically i want it to … Read more
All I need to do is to execute a callback function when my current function execution ends. function LoadData() { alert(‘The data has … Read more
I’m trying to pass some parameter to a function used as callback, how can I do that? This is my try: function tryMe(param1, … Read more
How to explain callbacks in plain English? How are they different from calling one function from another function taking some context from the … Read more
In C++, when and how do you use a callback function? EDIT: I would like to see a simple example to write a … Read more
What exactly is the difference between array_map, array_walk and array_filter. What I could see from documentation is that you could pass a callback … Read more
I’ve been developing JavaScript for a few years and I don’t understand the fuss about promises at all. It seems like all I … Read more
This question already has answers here: How to return the response from an asynchronous call (43 answers) Closed 7 years ago. This question … Read more
I know how delegates work, and I know how I can use them. But how do I create them? 19 s 19 An … Read more