node-green-light - simple green light/red light style use of fiber in node.js

  •        7

Node-green-light was an experiment to use fibers in a safer way. For a better maintained fork please use asyncblock instead. Node-green-light has thus been discontinued in favor of asyncblock and to have more time for my other projects. This wrapper to node-fibers aims to ease calling existing asynchronous code from a synchronous context. A greenlight fiber gets two functions, red and green. The first is for pausing the other for resumes. Call them anyway you like red/green, pause/resume, stop/go etc..

https://github.com/axkibe/node-green-light

Dependencies:

fibers : 0.6.x

Tags
Implementation
License
Platform

   




Related Projects

node-fibers - Fiber/coroutine support for v8 and node.

  •    C++

Fibers, sometimes called coroutines, are a powerful tool which expose an API to jump between multiple call stacks from within a single thread. This can be useful to make code written for a synchronous library play nicely in an asynchronous environment. Note: node-fibers uses node-gyp for building. To manually invoke the build process, you can use node-gyp rebuild. This will put the compiled extension in build/Release/fibers.node. However, when you do require('fibers'), it will expect the module to be in, for example, bin/linux-x64-v8-3.11/fibers.node. You can manually put the module here every time you build, or you can use the included build script. Either npm install or node build -f will do this for you. If you are going to be hacking on node-fibers, it may be worthwhile to first do node-gyp configure and then for subsequent rebuilds you can just do node-gyp build which will be faster than a full npm install or node-gyp rebuild.

may - rust stackful coroutine library

  •    Rust

Rust Stackful Coroutine Library. May is a high performance stackful coroutine library that can be thought of rust version goroutine. You can use it easily to design and develop massive concurrent programs in Rust.

fiber - userland threads

  •    C++

boost.fiber provides a framework for micro-/userland-threads (fibers) scheduled cooperatively. The API contains classes and functions to manage and synchronize fibers similiar to boost.thread. A fiber is able to store the current execution state, including all registers and CPU flags, the instruction pointer, and the stack pointer and later restore this state. The idea is to have multiple execution paths running on a single thread using a sort of cooperative scheduling (threads are preemptively scheduled) - the running fiber decides explicitly when it yields to allow another fiber to run (context switching).

vim-makegreen

  •    VimL

MakeGreen runs make and shows a red or green message bar for success/failure. Speeds the red-green-refactor cycle!

SQL Scriptz Runner

  •    DotNet

Features are : Drag And Drop script files Run a directory of script files Sql Script out put messages during execution Script passed or failed that are colored green and red (yellow for running) Stop on error option Open script on error option Run report with time taken...


postcss-colorblind - A PostCSS plugin for seeing your site as a colorblind person may.

  •    Javascript

The biggest reason is that as many developers don't have problems seeing color, they never stop to consider that their (or their colleagues') choices of colors make their website unusable and frustrating to those who can't see some shades of color. It's not even a small problem either; lots of people struggle with red and green. However, there are JavaScript bookmarklets that let you do this on the fly without having to run a build step. I built this with the thought in mind you could create an automated step to create a report of how you're doing with color.

ToastTimer traffic light speech clock

  •    VB

NEW VERSION - Pocket PC (Compact .Net Framework required)! Use your computer screen to tell you how long you've been giving a speech, compared to predefined limits, using a large on-screen clock, and a green/yellow/red background quot;stoplightquot; effect.

ecs-blue-green-deployment - Reference architecture for doing blue green deployments on ECS.

  •    Python

This reference architecture is in reference to blog post on blue green deployments on ECS. It creates a continuous delivery by leveraging AWS CloudFormation templates. The templates creates resources using Amazon's Code* services to build and deploy containers onto an ECS cluster as long running services. It also includes a manual approval step facilitated by lambda function that discovers and swaps target group rules between 2 target groups, promoting the green version to production and demoting the blue version to staging. This example uses AWS Command Line Interface to run Step-3 below.

green - Green is a clean, colorful, fast python test runner.

  •    Python

Now run green... For more help, see the complete command-line options or run green --help.

Green - Create UML diagram from code

  •    Java

green is a LIVE round-tripping editor, meaning that it supports both software engineering and reverse engineering. You can use green to create a UML class diagram from code, or to generate code by drawing a class diagram. green supports exporting files to both jpg and gif format, so that you can share you diagrams without any issues!

Zewo - Lightweight library for web server applications in Swift on macOS and Linux powered by coroutines

  •    Swift

Zewo is a lightweight library for web applications in Swift.Zewo is not a web framework. Zewo is a lightweight library for web applications in Swift. Most server-side Swift projects use Grand Central Dispatch (GCD) as the concurrency library of choice. The drawback of using GCD is that its APIs are asynchronous. With async code comes callback hell and we all know it, it's no fun.

Green Map

  •    Perl

quot;Green Map System is a global eco-cultural movement, energized by local knowledge, action and responsibility.quot; From Greenmap.com. This project is about creating the infrastructure to produce a green mapping system.

SP2001::ISG::Green Light District

  •    Java

GLD is a traffic flow simulator which can be used to evaluate the performance of AI traffic light controller algorithms and colearning navigation algorithms for cars. It is a discrete simulation which is designed to be easy to expand.

essential-image-optimization - Essential Image Optimization - an eBook

  •    CSS

Bring up a terminal and type node --version. Node should respond with a version at or above 0.10.x. If you require Node, go to nodejs.org and click on the big green Install button.

Electron Soccer

  •    C++

A game where you control a red or green ball trying to score the white ball into the opponent's gate.

Caph

  •    C

It is a sandbox game, based on physics. The game aim is to make contact red object with green object. You can use various objects, solid, wire (rope), and bendable objects. Gravitation will help you.

buildtwitcher

  •    Java

Build monitor for Hudson build system. Dragging and dropping a URL onto the build twitcher app window will make buildtwitcher poll that URL for build success and failure messages. Passing builds colour the window green, failing ones colour it red.

Four color clock

  •    

Four color clock is a small tool which displays current system time in a 4 color form. Four color clock is modified binary clock (base - 4, red - 0, yelow - 1, green - 2, blue - 3). You can use it as a gadget dragging on the display wherever you want, also it's translucent.

VSColorOutput

  •    CSharp

VSColorOutput is a Visual Studio 2010/2011 extension that adds color highlighting to Visual Studio's Build and Debug Output Windows. Errors are in Red, Warnings in Yellow, build headers are Green. Custom match patterns can be added. Colors can be modified. Developed in...