Update coroutines to support Promises, cancelation
authorJeremy Maitin-Shepard <jeremy@jeremyms.com>
Wed, 15 Jan 2014 21:06:58 +0000 (13:06 -0800)
committerJeremy Maitin-Shepard <jeremy@jeremyms.com>
Wed, 12 Feb 2014 02:40:59 +0000 (18:40 -0800)
commit05e21ba3686f9f668f7eaa4635d411fa045308f4
treed5111dd7878c76e8d1b4f8d53073879b6541771d
parent0db4909a6c169d0748f1648a39a8f0daeaba3cc3
Update coroutines to support Promises, cancelation

`co_call' and SUSPEND/CONTINUATION are now deprecated, and `spawn'
should be used instead for Promise and cancelation support.

modules/compat/Promise.jsm is used for Gecko versions older than 25.
It is derived from the Firefox 26.0 Promise.jsm, but was changed to be
syntax-compatible with Firefox 4.0.
modules/compat/Promise.jsm [new file with mode: 0644]
modules/coroutine.js