continuation icon indicating copy to clipboard operation
continuation copied to clipboard

JavaScript asynchronous Continuation-Passing Style transformation (deprecated).

Results 14 continuation issues
Sort by recently updated
recently updated
newest added

hello can you answer me?

https://github.com/BYVoid/continuation/blob/73b95521b10211fcc4e64a42d5f60d33c20dc6cb/examples/clock/clock.c.js#L19 text = (h >= 10 ? h : '0' + h) + ':' + (h >= 10 ? m : '0' + m) + ':' + (h >= 10...

https://github.com/BYVoid/continuation/blob/73b95521b10211fcc4e64a42d5f60d33c20dc6cb/examples/clock/clock.js#L19 var text = ((h >= 10) ? h : "0" + h) + ":" + ((h >= 10) ? m : "0" + m) + ":" + ((h >=...

both CoffeeScript and LessCSS has such "all-in-one" js file, runnable in any enviromement (not only node-js)

Are continuations portable? Specifically, could a continuation be serialized and sent across the network to be resumed elsewhere? If that were possible you could potentially do some very interesting stuff...

``` javascript foo(cont()); d = (new a.b).c(); ``` and the result is ``` javascript foo(function (arguments) { d = new a.b().c(); }.bind(this, arguments)); /* Generated by Continuation.js v0.1.7 */ ```

``` coffeescript a={} a.b=(cb)-> console.log this try console.log this this.b cont() catch err console.error err a.b() ``` the output code is ``` javascript (function () { var a; a =...

The code in this function: ``` js function t() { var csvPath = '/tmp/contacts.csv'; parser = new ContactDocParser(csvPath, cont()); } ``` gets compiled to ``` js function t() { var...

``` js var test = function(callback) { console.log('called'); callback(null); } function main() { try { test(obtain(a)); } catch (e) { console.log('error by obtain', e); } throw 'a'; } try {...

bug

``` js function test() { 'use strict'; f(obtain()); } ``` Actual ``` js function test() { var _$err; 'use strict'; f(function () { _$err = arguments[0]; if (_$err) throw _$err;...

enhancement