forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJs.Promise.html
90 lines (83 loc) · 6.63 KB
/
Js.Promise.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="../api_static/tomorrow-night.css">
<link rel="stylesheet" href="../api_static/style.css" type="text/css">
<script src="../api_static//highlight.pack.js"></script>
<script src="../api_static//script.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<meta charset="utf8">
<link rel="previous" href="Js.Re.html"><link rel="next" href="Js.Date.html">
<title> Js.Promise </title></head>
<body>
<nav class="module-index"><ul><li><a href="Bs.html">Bs</a></li>
<li><a href="Bs_dyn.html">Bs_dyn</a></li>
<li><a href="Bs_dyn_lib.html">Bs_dyn_lib</a></li>
<li><a href="Dom.html">Dom</a></li>
<li><a href="Dom_storage.html">Dom_storage</a></li>
<li><a href="Js.html">Js</a></li>
<li><a href="Js_array.html">Js_array</a></li>
<li><a href="Js_boolean.html">Js_boolean</a></li>
<li><a href="Js_cast.html">Js_cast</a></li>
<li><a href="Js_date.html">Js_date</a></li>
<li><a href="Js_dict.html">Js_dict</a></li>
<li><a href="Js_exn.html">Js_exn</a></li>
<li><a href="Js_float.html">Js_float</a></li>
<li><a href="Js_global.html">Js_global</a></li>
<li><a href="Js_int.html">Js_int</a></li>
<li><a href="Js_int64.html">Js_int64</a></li>
<li><a href="Js_internal.html">Js_internal</a></li>
<li><a href="Js_json.html">Js_json</a></li>
<li><a href="Js_list.html">Js_list</a></li>
<li><a href="Js_math.html">Js_math</a></li>
<li><a href="Js_nativeint.html">Js_nativeint</a></li>
<li><a href="Js_null.html">Js_null</a></li>
<li><a href="Js_null_undefined.html">Js_null_undefined</a></li>
<li><a href="Js_obj.html">Js_obj</a></li>
<li><a href="Js_option.html">Js_option</a></li>
<li><a href="Js_primitive.html">Js_primitive</a></li>
<li><a href="Js_promise.html">Js_promise</a></li>
<li><a href="Js_re.html">Js_re</a></li>
<li><a href="Js_result.html">Js_result</a></li>
<li><a href="Js_string.html">Js_string</a></li>
<li><a href="Js_typed_array.html">Js_typed_array</a></li>
<li><a href="Js_types.html">Js_types</a></li>
<li><a href="Js_undefined.html">Js_undefined</a></li>
<li><a href="Js_unsafe.html">Js_unsafe</a></li>
<li><a href="Js_vector.html">Js_vector</a></li>
<li><a href="Node.html">Node</a></li>
<li><a href="Node_buffer.html">Node_buffer</a></li>
<li><a href="Node_child_process.html">Node_child_process</a></li>
<li><a href="Node_fs.html">Node_fs</a></li>
<li><a href="Node_module.html">Node_module</a></li>
<li><a href="Node_path.html">Node_path</a></li>
<li><a href="Node_process.html">Node_process</a></li></ul></nav>
<div class="navbar"><a class="pre" href="Js.Re.html" title="Js.Re">Previous</a>
<a class="up" href="Js.html" title="Js">Up</a>
<a class="post" href="Js.Date.html" title="Js.Date">Next</a>
</div>
<h1>Module <a href="type_Js.Promise.html">Js.Promise</a></h1>
<pre><span class="keyword">module</span> Promise: <code class="type"><a href="Js_promise.html">Js_promise</a></code></pre><div class="info module top">
<div class="not-examples">
Provide bindings to JS promise<br>
</div>
</div>
<hr width="100%">
<div class="type-declaration">
<pre><span id="TYPEt"><span class="keyword">type</span> <code class="type">+'a</code> t</span> </pre>
</div>
<div class="type-declaration">
<pre><span id="TYPEerror"><span class="keyword">type</span> <code class="type"></code>error</span> </pre>
</div>
<pre><span id="VALmake"><span class="keyword">val</span> make</span> : <code class="type">(resolve:('a -> unit [@bs]) -> reject:(exn -> unit [@bs]) -> unit) -><br> 'a <a href="Js_promise.html#TYPEt">t</a></code></pre>
<pre><span id="VALresolve"><span class="keyword">val</span> resolve</span> : <code class="type">'a -> 'a <a href="Js_promise.html#TYPEt">t</a></code></pre>
<pre><span id="VALreject"><span class="keyword">val</span> reject</span> : <code class="type">exn -> 'a <a href="Js_promise.html#TYPEt">t</a></code></pre>
<pre><span id="VALall"><span class="keyword">val</span> all</span> : <code class="type">'a <a href="Js_promise.html#TYPEt">t</a> array -> 'a array <a href="Js_promise.html#TYPEt">t</a></code></pre>
<pre><span id="VALall2"><span class="keyword">val</span> all2</span> : <code class="type">'a0 <a href="Js_promise.html#TYPEt">t</a> * 'a1 <a href="Js_promise.html#TYPEt">t</a> -> ('a0 * 'a1) <a href="Js_promise.html#TYPEt">t</a></code></pre>
<pre><span id="VALall3"><span class="keyword">val</span> all3</span> : <code class="type">'a0 <a href="Js_promise.html#TYPEt">t</a> * 'a1 <a href="Js_promise.html#TYPEt">t</a> * 'a2 <a href="Js_promise.html#TYPEt">t</a> -><br> ('a0 * 'a1 * 'a2) <a href="Js_promise.html#TYPEt">t</a></code></pre>
<pre><span id="VALall4"><span class="keyword">val</span> all4</span> : <code class="type">'a0 <a href="Js_promise.html#TYPEt">t</a> * 'a1 <a href="Js_promise.html#TYPEt">t</a> * 'a2 <a href="Js_promise.html#TYPEt">t</a> * 'a3 <a href="Js_promise.html#TYPEt">t</a> -><br> ('a0 * 'a1 * 'a2 * 'a3) <a href="Js_promise.html#TYPEt">t</a></code></pre>
<pre><span id="VALall5"><span class="keyword">val</span> all5</span> : <code class="type">'a0 <a href="Js_promise.html#TYPEt">t</a> * 'a1 <a href="Js_promise.html#TYPEt">t</a> * 'a2 <a href="Js_promise.html#TYPEt">t</a> * 'a3 <a href="Js_promise.html#TYPEt">t</a> *<br> 'a4 <a href="Js_promise.html#TYPEt">t</a> -> ('a0 * 'a1 * 'a2 * 'a3 * 'a4) <a href="Js_promise.html#TYPEt">t</a></code></pre>
<pre><span id="VALall6"><span class="keyword">val</span> all6</span> : <code class="type">'a0 <a href="Js_promise.html#TYPEt">t</a> * 'a1 <a href="Js_promise.html#TYPEt">t</a> * 'a2 <a href="Js_promise.html#TYPEt">t</a> * 'a3 <a href="Js_promise.html#TYPEt">t</a> *<br> 'a4 <a href="Js_promise.html#TYPEt">t</a> * 'a5 <a href="Js_promise.html#TYPEt">t</a> -><br> ('a0 * 'a1 * 'a2 * 'a3 * 'a4 * 'a5) <a href="Js_promise.html#TYPEt">t</a></code></pre>
<pre><span id="VALrace"><span class="keyword">val</span> race</span> : <code class="type">'a <a href="Js_promise.html#TYPEt">t</a> array -> 'a <a href="Js_promise.html#TYPEt">t</a></code></pre>
<pre><span id="VALthen_"><span class="keyword">val</span> then_</span> : <code class="type">('a -> 'b <a href="Js_promise.html#TYPEt">t</a>) -> 'a <a href="Js_promise.html#TYPEt">t</a> -> 'b <a href="Js_promise.html#TYPEt">t</a></code></pre>
<pre><span id="VALcatch"><span class="keyword">val</span> catch</span> : <code class="type">(<a href="Js_promise.html#TYPEerror">error</a> -> 'a <a href="Js_promise.html#TYPEt">t</a>) -> 'a <a href="Js_promise.html#TYPEt">t</a> -> 'a <a href="Js_promise.html#TYPEt">t</a></code></pre></body></html>