ccall(dlsym(glfw, :glfwInit), Int, ())
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run with `node --harmony coro.js` | |
"use strict"; | |
const Promise = require('bluebird'); | |
// Takes a function*, `g`, that yields promises. | |
// Returns a promise that resolves to `g`'s eventual return value. | |
var coro = function(gStar) { | |
const pending = Promise.pending(); |