asyncFuture.js
function executeCallback(cb, arg) {
    var r = cb(arg)
    if(r !== undefined && !isLikeAFuture(r) )
        throw Error("Value returned from then or catch ("+r+") is *not* a Future. Callback: "+cb.toString())

    return r
}
function executeCallback(cb, arg) {
    var r = cb(arg)
    if(r !== undefined && !isLikeAFuture(r) )
        throw Error("Value returned from then or catch ("+r+") is *not* a Future. Callback: "+cb.toString())

    return r
}
function executeCallback ( cb , arg ) { var r = cb ( arg ) if ( r !== undefined && ! isLikeAFuture ( r ) ) throw Error ( "Value returned from then or catch (" + r + ") is *not* a Future. Callback: " + cb . toString ( ) ) return r }
executes a callback and ensures that it returns a future
executes a callback and ensures that it returns a future