Hub.js has a very simple Promise implementation. You can find a
working example here:
https://github.com/mantoni/hub.js/blob/master/examples/hello-async.html

And some JsTestDriver test cases here:
https://github.com/mantoni/hub.js/blob/master/src-test/PromiseTest.js
https://github.com/mantoni/hub.js/blob/master/src-test/async/PeerAndPromiseTest.js

Hope you find them useful.
- Max


On 27 Mrz., 16:47, Mark McDonnell <[email protected]> wrote:
> Hi,
>
> I've been searching for an article to explain how to implement 
> Promises/Defers/When/Then functionality but all I seem to find are articles 
> based on how to use client/sever-side js libraries that already implement it.
>
> I have found a couple of Promise examples via Github gusts but they are 
> extremely 'bare boned' and also don't explain how you could use them and for 
> someone like me I learn better through working examples.
>
> Any help would be really appreciated!
>
> Mark.

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to