spine-awaitajax
Turns Spine/jQuery Ajax requests into single-callback form, for use with await/defer
What?
Iced CoffeeScript and tamejs offer the await/defer construct that lends itself well to the node-style async pattern callback(err, response), particularly when using a construct like errify/make_esc from iced error.
awaitajax lets you have your await and easy jQuery.ajax() -style options too. By building on iced, AJAX calls can be easily handled in one line.
Example
Regular
await AjaxawaitGet url: "https://www.google.com"defer errresponse
Serial
await AjaxawaitQueuedGet url: "https://www.google.com"defer errresponseawait AjaxawaitQueuedGet url: "http://siteaftergoogle.com"defer errresponse
License
MIT