briancavalier/when.js — Issue #10: Need when.defer( function (dfd) {... } )
Author: ThomasBurleson
Created: 2012-01-03 02:20:55+00:00
State: open

One nice syntactical feature of jQuery Deferred is the optional constructor function:

var defer = new $.Deferred(
function(dfd:Deferred)
{
// Do async action inline
// prepare callbacks
// resolve/reject if needed here
}
).promise();

A brief study of when.js did not immediately reveal such to me...
Does when.js support such usage syntax?