powered by Authenteo
 

Learn more

Coroutines for JavaScript

JavaScript Strands adds coroutine and cooperative threading support to JavaScript to enable blocking capabilities for asynchronous event callbacks. This makes code that utilizes asynchronous operations much more linear, readable, and manageable. Strands is built upon Narrative JavaScript written by Neil Mix , and much of Narrative JavaScript has remained in Strands including much of the Strands documentation .

Download Strands (for JavaScript 1)

Rhino Strands

Rhino Strands adds native coroutine support and cooperative to Rhino. Rhino Strands follows the same API as the normal Strands (for JS 1) framework. Rhino Strands uses synchronized system level threads to create coroutine capabilities. These threads are synchronized such that no two threads execute at the same time and so there is no threading issues introduced with Rhino Strands.

Download Rhino Strands