pattern jacket an asynchronous javascript duty synchronous


i'm operative javascript api where many functions asynchronous. api contracting subset functionality manipulate sqlite3 databases. i know settlement preference things async retard yield manageable user interface. conditions i know use async api calls govern fast. given box i'd yield developers cleaner easier coupling api army synchronous calls.



here's async call



db.executesql(sqlstatement, function(result) {
// something result
});


and here's i'd means do



var outcome = dbwrapper.executesql(sqlstatement);
// something result


is there settlement pattern/way this? combined related formula instance preferred. aim platform/broswer mobile safari iphone.



thank you



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?