rafa
Version:
Rafa.js is a Javascript framework for building concurrent applications.
18 lines (14 loc) • 420 B
Markdown
Set a new value for the property if the property was not setup with a function
provided to the constructor (they are updated automatically).
<aside>
```js
// set(value: A): Property
var property = Rafa.property(1); // static
var other = Rafa.property(() => property + 1); // dynamic
property.set(2);
// property.get(): 2
// other.get(): 3
other.set(4); // nothing happens
// other.get(): 3
```
</aside>