We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e8a54b2 + 6610db0 commit 334102bCopy full SHA for 334102b
1 file changed
docs/api/method/promise.md
@@ -17,17 +17,18 @@ description: "Promise object constructor"
17
- `executor` - (required) *function* - a callback used to initialize the promise
18
19
### Returns
20
-- ` promise` - (object) - the promise object
+
21
+- `promise` - (object) - the promise object
22
23
### Example
24
25
~~~jsx
-new gantt.Promise(function(resolve, reject) {
26
- setTimeout(function(){
+new gantt.Promise((resolve, reject) => {
27
+ setTimeout(() => {
28
resolve();
29
}, 5000);
-}).then(function(){
30
- alert("Resolved")
+}).then(() => {
31
+ alert("Resolved");
32
});
33
~~~
34
0 commit comments