mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-24 18:30:23 +00:00
13 lines
246 B
JavaScript
13 lines
246 B
JavaScript
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;
|
|
}
|
|
};
|