Stoplight
A simple flow control mechanism.
Has two modes: "go" and "stop".
Starts stopped.
var stoplight = stoplight // starts stoppedstoplight
Example
Here is a class that has some async intialization process, but can have its asynchronous method called immediately w/o breaking.
{ var self = this self_stoplight = } MyClassprototype{ var self = this self_stoplight}