co
co copied to clipboard
The ultimate generator based flow-control goodness for nodejs (supports thunks, promises, etc)
import random import os print("1.شبه ثلاثي بـ(-)") print("2.شبه ثلاثي(.)") print("3.شبه ثلاثي عشوائي") print("4.مخصص") sa = input("اختار:") os.system("COLOR A") if sa == "1": print("مكانها؟") print("1| (_***)") print("2| (*_**)") print("3| (**_*)") print("4|...
Added power support for the travis.yml file with ppc64le. This is part of the Ubuntu distribution for ppc64le. This helps us simplify testing later when distributions are re-building and re-releasing.
What's about golang-like deferred calls with co? I think it should looks like that: ``` javascript co(function *(){ var db = yield DB.connect(); // Add deferred function yield co.defer(function(){ db.close();...
Hi, I think it will be nice to be able yielding the streams (it will be waiting the stream "end" event) as well.
``` function isGenerator(obj) { return 'function' == typeof obj.next && 'function' == typeof obj.throw; } ``` why not use toString.call(obj)==="[object Generator]" to replace that? I think this is a more...
if a space between function and * will test failed.
adding ability to pass classical inheritance object ``` co(function* () { function Human(name, age) { this.name = name; this.age = age; } Human.prototype.getName = function() { return this.name; }; Human.prototype.getAge...