The thinkmap.async module defines functions and classes for dealing with asynchronous loading and handling of data.
Combine a series of futures into a single Future that is fulfilled when all of the given Futures have been fulfilled.
a list of futures
a future which is fulfilled when all the arguments have been fulfilled
Combine a series of futures into a single Future that is fulfilled when only one of the futures completes. If any of the futures throws an error, it will be ignored unless it there are no longer any running and the returned will never complete, in this case a new error will be thrown.
a list of futures
a future which is fulfilled when only one of the arguments is fulfilled.
Returns a future that is fulfilled when the DOMContentLoaded event fires.
Turns any value into a Future which has already been fulfilled.
any value
an optional object to be used as the "this" pointer when notifying listeners
Returns a Future that is the result of POSTing to a remote HTTP resource.
the HTTP request method, usually GET or POST.
the URL of the resource
the username (or undefined, for none)
the password (or undefined, for none)
a map of strings set as HTTP headers (or undefined, for none)
the POST body to be sent to the server
Returns a Future that is the result of making a json request to a remote HTTP resource.
Returns a future that is fulfilled by calling a function after a delay.
the function that will be called. Whatever this function returns will be the fulfillment value of the Future. If this function throws an exception, it will be passed to the error listeners of the future.
the number of milliseconds to wait before calling the function, the default is 1
an optional object to use as the "this" pointer when calling the function and fulfilling the returned Future
Returns a Future that is the result of POSTing to a remote HTTP resource.