blob: d70e8e6e36bec34eef054b1cee57d60c33a3421a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
function Future(name, behavior) {
this.name = name;
this.behavior = behavior;
this.fulfilled = false;
this.value = undefined;
}
Future.prototype = {
fulfill: function(value) {
this.fulfilled = true;
this.value = value;
}
};
|