when.js 1.5.0 released

50 views
Skip to first unread message

Brian Cavalier

unread,
Sep 25, 2012, 3:26:28 PM9/25/12
to
We just released when.js 1.5.0.  It adds task execution features, and performance improvements:

  • New task execution and concurrency management: when/sequence, when/pipeline, and when/parallel.
  • Performance optimizations for when.all and when.map, up to 2x in some cases.
  • Options for disabling paranoid mode that provides a significant performance gain in v8 (e.g. Node and Chrome). See this v8 performance problem with Object.freeze for more info.
  • deferred and deferred.resolver no longer throw when resolved/rejected multiple times. They will return silently as if the they had succeeded. This prevents parties to whom only the resolver has been given from using try/catch to determine the state of the associated promise.
    • For debugging, you can use the when/debug module, which will still throw when a deferred is resolved/rejected multiple times.
Check it out, and as usual, feel free to post to the group or create an issue on github, if you run into any issues.

Karolis Narkevičius

unread,
Sep 25, 2012, 4:01:22 PM9/25/12
to cuj...@googlegroups.com
Awesome! Very excited about the sequence/pipeline/parallel! :)


--
You received this message because you are subscribed to the Google Groups "cujojs" group.
To post to this group, send email to cuj...@googlegroups.com.
To unsubscribe from this group, send email to cujojs+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/cujojs?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/cujojs/-/jqM2hAx0Y_cJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

unscriptable

unread,
Sep 25, 2012, 4:35:19 PM9/25/12
to cuj...@googlegroups.com
I don't think Brian gave this release enough justice.  The words "wicked fasssst" come to mind. :)

Brian Cavalier

unread,
Sep 26, 2012, 8:36:05 AM9/26/12
to cuj...@googlegroups.com
Cool.  We're definitely interested in feedback on these.  One open question in my mind: Are both sequence and pipeline needed?  Or is one typically just way more useful than the other?  If you have any thoughts, please let us know!

b
Reply all
Reply to author
Forward
0 new messages